~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to tools/gpgsplit.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
526
526
 
527
527
/* hdr must point to a buffer large enough to hold all header bytes */
528
528
static int
529
 
write_part ( const char *fname, FILE *fpin, unsigned long pktlen,
530
 
             int pkttype, int partial, unsigned char *hdr, size_t hdrlen)
 
529
write_part (FILE *fpin, unsigned long pktlen,
 
530
            int pkttype, int partial, unsigned char *hdr, size_t hdrlen)
531
531
{
532
532
  FILE *fpout;
533
533
  int c, first;
770
770
 
771
771
 
772
772
static int
773
 
do_split (const char *fname, FILE *fp)
 
773
do_split (FILE *fp)
774
774
{
775
775
  int c, ctb, pkttype;
776
776
  unsigned long pktlen = 0;
848
848
        }
849
849
    }
850
850
 
851
 
  return write_part (fname, fp, pktlen, pkttype, partial,
852
 
                     header, header_idx);
 
851
  return write_part (fp, pktlen, pkttype, partial, header, header_idx);
853
852
}
854
853
 
855
854
 
870
869
      return;
871
870
    }
872
871
  
873
 
  while ( !(rc = do_split (fname, fp)) )
 
872
  while ( !(rc = do_split (fp)) )
874
873
    ;
875
874
  if ( rc > 0 )
876
875
    ; /* error already handled */