~ubuntu-branches/ubuntu/trusty/xfsdump/trusty-proposed

« back to all changes in this revision

Viewing changes to invutil/invutil.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2008-04-23 22:06:34 UTC
  • mfrom: (0.1.1 upstream) (3.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080423220634-7m8953nknbpz1nsv
Tags: 2.2.48-1
* New upstream release
* xfsdump depends on ${misc:Depends}
* Add debian/watch
* Add homepage control header
* Fix the following lintian issues:
  W: xfsdump source: package-uses-deprecated-debhelper-compat-version 1
  W: xfsdump source: ancient-standards-version 3.5.9 (current is 3.7.3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
821
821
}
822
822
 
823
823
/* If any of the media objects have a label which matches the one supplied
824
 
 * by the user, or if none is supplied, say the session is prunable.
 
824
 * by the user, or if none is supplied, or if the session has no media
 
825
 * objects, say the session is prunable.
825
826
 * Otherwise, say it should be bypassed.
826
827
 */
827
828
 
833
834
        char *r_mf_label)
834
835
{
835
836
    int                 s, m;
 
837
    int                 num_media_objects = 0;
836
838
    invt_stream_t       *StObjstrm;
837
839
    invt_mediafile_t    *StObjmed;
838
840
 
842
844
    for ( s = 0; s < (int) StObjses->s_cur_nstreams; s++ ) {
843
845
        StObjstrm = (invt_stream_t *)
844
846
            (temp + StObjhdr->sh_streams_off + (s * sizeof(invt_stream_t)));
845
 
        for ( m = 0; m < StObjstrm->st_nmediafiles; m++) {
 
847
        for ( m = 0; m < StObjstrm->st_nmediafiles; m++, num_media_objects++) {
846
848
            StObjmed = (invt_mediafile_t *)
847
849
                (temp + StObjstrm->st_firstmfile + (m * sizeof(invt_mediafile_t)));
848
850
            if (!strncmp(StObjmed->mf_label, r_mf_label, 
854
856
            }
855
857
        }
856
858
    }
 
859
 
 
860
    if (!num_media_objects)
 
861
            return 1; /* prune */
 
862
 
857
863
    return 0;   /* don't prune */
858
864
}
859
865