=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/is_tar.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/file/Attic/is_tar.c 1996/06/26 05:32:58 1.2 --- src/usr.bin/file/Attic/is_tar.c 1997/02/09 23:58:27 1.3 *************** *** 1,4 **** ! /* $OpenBSD: is_tar.c,v 1.2 1996/06/26 05:32:58 deraadt Exp $ */ /* * is_tar() -- figure out whether file is a tar archive. * --- 1,5 ---- ! /* $OpenBSD: is_tar.c,v 1.3 1997/02/09 23:58:27 millert Exp $ */ ! /* * is_tar() -- figure out whether file is a tar archive. * *************** *** 19,27 **** #define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) #if defined(__STDC__) || defined(__cplusplus) ! static long from_oct(int, char*); /* Decode octal number */ #else ! static long from_oct(); #endif /* --- 20,28 ---- #define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) #if defined(__STDC__) || defined(__cplusplus) ! static int from_oct(int, char*); /* Decode octal number */ #else ! static int from_oct(); #endif /* *************** *** 37,43 **** { register union record *header = (union record *)buf; register int i; ! register long sum, recsum; register char *p; if (nbytes < sizeof(union record)) --- 38,44 ---- { register union record *header = (union record *)buf; register int i; ! register int sum, recsum; register char *p; if (nbytes < sizeof(union record)) *************** *** 75,86 **** * * Result is -1 if the field is invalid (all blank, or nonoctal). */ ! static long from_oct(digs, where) register int digs; register char *where; { ! register long value; while (isspace(*where)) { /* Skip spaces */ where++; --- 76,87 ---- * * Result is -1 if the field is invalid (all blank, or nonoctal). */ ! static int from_oct(digs, where) register int digs; register char *where; { ! register int value; while (isspace(*where)) { /* Skip spaces */ where++;