WARNSify
This commit is contained in:
parent
906b60f5e0
commit
b01545b899
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: apprentice.c,v 1.13 1997/01/28 00:49:37 christos Exp $ */
|
||||
/* $NetBSD: apprentice.c,v 1.14 1997/10/18 14:53:48 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* apprentice - make one pass through /etc/magic, learning its secrets.
|
||||
@ -34,9 +34,9 @@
|
||||
#include <errno.h>
|
||||
#include "file.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: apprentice.c,v 1.13 1997/01/28 00:49:37 christos Exp $";
|
||||
__RCSID("$NetBSD: apprentice.c,v 1.14 1997/10/18 14:53:48 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
#define EATAB {while (isascii((unsigned char) *l) && \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ascmagic.c,v 1.10 1997/01/28 00:49:38 christos Exp $ */
|
||||
/* $NetBSD: ascmagic.c,v 1.11 1997/10/18 14:53:50 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* ASCII magic -- file types that we know based on keywords
|
||||
@ -36,9 +36,9 @@
|
||||
#include "file.h"
|
||||
#include "names.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: ascmagic.c,v 1.10 1997/01/28 00:49:38 christos Exp $";
|
||||
__RCSID("$NetBSD: ascmagic.c,v 1.11 1997/10/18 14:53:50 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
/* an optimisation over plain strcmp() */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: file.c,v 1.12 1997/10/18 14:49:41 lukem Exp $ */
|
||||
/* $NetBSD: file.c,v 1.13 1997/10/18 14:53:52 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* file - find type of a file or files - main program.
|
||||
@ -26,9 +26,10 @@
|
||||
*
|
||||
* 4. This notice may not be removed or altered.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: file.c,v 1.12 1997/10/18 14:49:41 lukem Exp $";
|
||||
__RCSID("$NetBSD: file.c,v 1.13 1997/10/18 14:53:52 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
#include <stdio.h>
|
||||
@ -80,6 +81,7 @@ char *progname; /* used throughout */
|
||||
int lineno; /* line number in the magic file */
|
||||
|
||||
|
||||
int main __P((int, char **));
|
||||
static void unwrap __P((char *fn));
|
||||
#if 0
|
||||
static int byteconv4 __P((int, int, int));
|
||||
@ -91,8 +93,8 @@ static short byteconv2 __P((int, int, int));
|
||||
*/
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int c;
|
||||
int check = 0, didsomefiles = 0, errflg = 0, ret = 0, app = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fsmagic.c,v 1.10 1997/01/28 00:49:41 christos Exp $ */
|
||||
/* $NetBSD: fsmagic.c,v 1.11 1997/10/18 14:53:54 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* fsmagic - magic based on filesystem info - directory, special files, etc.
|
||||
@ -51,9 +51,9 @@
|
||||
|
||||
#include "file.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: fsmagic.c,v 1.10 1997/01/28 00:49:41 christos Exp $";
|
||||
__RCSID("$NetBSD: fsmagic.c,v 1.11 1997/10/18 14:53:54 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: is_tar.c,v 1.7 1997/01/28 00:49:42 christos Exp $ */
|
||||
/* $NetBSD: is_tar.c,v 1.8 1997/10/18 14:53:56 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* is_tar() -- figure out whether file is a tar archive.
|
||||
@ -7,7 +7,7 @@
|
||||
* Pubic Domain version written 26 Aug 1985 John Gilmore (ihnp4!hoptoad!gnu).
|
||||
*
|
||||
* @(#)list.c 1.18 9/23/86 Public Domain - gnu
|
||||
* $NetBSD: is_tar.c,v 1.7 1997/01/28 00:49:42 christos Exp $
|
||||
* $NetBSD: is_tar.c,v 1.8 1997/10/18 14:53:56 lukem Exp $
|
||||
*
|
||||
* Comments changed and some code/comments reformatted
|
||||
* for file command by Ian Darwin.
|
||||
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
#include "file.h"
|
||||
#include "tar.h"
|
||||
|
||||
#define isodigit(c) ( ((c) >= '0') && ((c) <= '7') )
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: print.c,v 1.12 1997/04/19 05:21:36 thorpej Exp $ */
|
||||
/* $NetBSD: print.c,v 1.13 1997/10/18 14:53:58 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* print.c - debugging printout routines
|
||||
@ -40,9 +40,9 @@
|
||||
#include <time.h>
|
||||
#include "file.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: print.c,v 1.12 1997/04/19 05:21:36 thorpej Exp $";
|
||||
__RCSID("$NetBSD: print.c,v 1.13 1997/10/18 14:53:58 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
#define SZOF(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: softmagic.c,v 1.14 1997/09/30 17:00:47 is Exp $ */
|
||||
/* $NetBSD: softmagic.c,v 1.15 1997/10/18 14:54:00 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* softmagic - interpret variable magic from MAGIC
|
||||
@ -35,9 +35,9 @@
|
||||
|
||||
#include "file.h"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char *moduleid =
|
||||
"@(#)$NetBSD: softmagic.c,v 1.14 1997/09/30 17:00:47 is Exp $";
|
||||
__RCSID("$NetBSD: softmagic.c,v 1.15 1997/10/18 14:54:00 lukem Exp $");
|
||||
#endif /* lint */
|
||||
|
||||
static int match __P((unsigned char *, int));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tar.h,v 1.5 1997/01/09 20:19:02 tls Exp $ */
|
||||
/* $NetBSD: tar.h,v 1.6 1997/10/18 14:54:03 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Header file for public domain tar (tape archive) program.
|
||||
@ -7,7 +7,7 @@
|
||||
*
|
||||
* Created 25 August 1985 by John Gilmore, ihnp4!hoptoad!gnu.
|
||||
*
|
||||
* $NetBSD: tar.h,v 1.5 1997/01/09 20:19:02 tls Exp $
|
||||
* $NetBSD: tar.h,v 1.6 1997/10/18 14:54:03 lukem Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -173,9 +173,5 @@ TAR_EXTERN char read_error_flag;
|
||||
* Declarations of functions available to the world.
|
||||
*/
|
||||
/*LINTLIBRARY*/
|
||||
union record *findrec();
|
||||
void userec();
|
||||
union record *endofrecs();
|
||||
void anno();
|
||||
#define annorec(stream, msg) anno(stream, msg, 0) /* Cur rec */
|
||||
#define annofile(stream, msg) anno(stream, msg, 1) /* Saved rec */
|
||||
|
Loading…
Reference in New Issue
Block a user