~ubuntu-branches/ubuntu/utopic/cmake/utopic

« back to all changes in this revision

Viewing changes to Utilities/cmlibarchive/libarchive/archive_read_support_filter_rpm.c

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-10-10 12:54:39 UTC
  • mfrom: (1.14.7)
  • Revision ID: package-import@ubuntu.com-20131010125439-h0ahaj004on6oj92
Tags: 2.8.12-0ubuntu1
New upstream release LP: #1246701

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                return (ARCHIVE_FATAL);
86
86
 
87
87
        bidder->data = NULL;
 
88
        bidder->name = "rpm";
88
89
        bidder->bid = rpm_bidder_bid;
89
90
        bidder->init = rpm_bidder_init;
90
91
        bidder->options = NULL;
137
138
{
138
139
        struct rpm   *rpm;
139
140
 
140
 
        self->code = ARCHIVE_COMPRESSION_RPM;
 
141
        self->code = ARCHIVE_FILTER_RPM;
141
142
        self->name = "rpm";
142
143
        self->read = rpm_filter_read;
143
144
        self->skip = NULL; /* not supported */
188
189
                        if (rpm->total_in + avail_in < RPM_LEAD_SIZE)
189
190
                                used += avail_in;
190
191
                        else {
191
 
                                n = RPM_LEAD_SIZE - rpm->total_in;
 
192
                                n = (size_t)(RPM_LEAD_SIZE - rpm->total_in);
192
193
                                used += n;
193
194
                                b += n;
194
195
                                rpm->state = ST_HEADER;