Ticket #10396: 0009-compress-Add-missing-return-types-and-declarations.patch

File 0009-compress-Add-missing-return-types-and-declarations.patch, 1.3 KB (added by js, 6 years ago)
  • src/bin/compress/compress.c

    From 2304f172cd12cc37fd2f0ee3b5fd1bc07fcaf4be Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Fri, 10 Jan 2014 21:06:51 +0100
    Subject: [PATCH 09/10] compress: Add missing return types and declarations.
    
    ---
     src/bin/compress/compress.c | 10 ++++++++--
     1 file changed, 8 insertions(+), 2 deletions(-)
    
    diff --git a/src/bin/compress/compress.c b/src/bin/compress/compress.c
    index 7c6da280..b68283c 100644
    a b void (*bgnd_flag)();  
    494494
    495495int do_decomp = 0;
    496496
     497void compress(void);
     498void decompress(void);
     499void copystat(char *ifname, char *ofname);
     500
    497501/*****************************************************************
    498502 * TAG( main )
    499503 *
    long int out_count = 0; /* # of codes output (for debugging) */  
    947951 * questions about this implementation to ames!jaw.
    948952 */
    949953
     954void
    950955compress() {
    951956    register long fcode;
    952957    register code_int i = 0;
    code_int code;  
    12151220 * with those of the compress() routine.  See the definitions above.
    12161221 */
    12171222
     1223void
    12181224decompress() {
    12191225
    12201226#ifdef BIG
    writeerr()  
    15151521    exit ( 1 );
    15161522}
    15171523
    1518 copystat(ifname, ofname)
    1519 char *ifname, *ofname;
     1524void
     1525copystat(char *ifname, char *ofname)
    15201526{
    15211527    struct stat statbuf;
    15221528    int mode;