Be pedantic, main() returns int in C.
This commit is contained in:
parent
32a38f24e7
commit
cac62b2d65
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fsdb.c,v 1.3 1996/02/27 22:28:12 jtc Exp $ */
|
||||
/* $NetBSD: fsdb.c,v 1.4 1996/03/21 17:56:15 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$NetBSD: fsdb.c,v 1.3 1996/02/27 22:28:12 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: fsdb.c,v 1.4 1996/03/21 17:56:15 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -82,7 +82,7 @@ int returntosingle = 0;
|
||||
* fsreadfd is set up to read from the file system, fswritefd to write to
|
||||
* the file system.
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -80,7 +80,7 @@ void usage() {
|
||||
fprintf(stderr, " catfile msgfile [-h <header-file>]...\n");
|
||||
}
|
||||
|
||||
void main(
|
||||
int main(
|
||||
#if ANSI_C || defined(__cplusplus)
|
||||
int argc, char *argv[])
|
||||
#else
|
||||
|
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: rusers.c,v 1.10 1993/12/10 19:33:58 jtc Exp $";
|
||||
static char rcsid[] = "$Id: rusers.c,v 1.11 1996/03/21 18:00:35 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -224,13 +224,15 @@ allhosts(void)
|
||||
}
|
||||
}
|
||||
|
||||
void usage(void)
|
||||
void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [-la] [hosts ...]\n", argv0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void main(int argc, char *argv[])
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int ch;
|
||||
extern int optind;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.6 1995/05/06 06:25:07 jtc Exp $ */
|
||||
/* $NetBSD: main.c,v 1.7 1996/03/21 18:04:25 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1992, 1993
|
||||
@ -43,7 +43,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.6 1995/05/06 06:25:07 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.7 1996/03/21 18:04:25 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -82,7 +82,7 @@ int CMDLINE;
|
||||
|
||||
static WINDOW *wload; /* one line window for load average */
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* I would appreciate (though I do not require) receiving a copy of any
|
||||
* improvements you might make to this program.
|
||||
*
|
||||
* $Id: units.c,v 1.3 1994/12/21 07:22:00 jtc Exp $
|
||||
* $Id: units.c,v 1.4 1996/03/21 18:06:48 jtc Exp $
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
@ -625,7 +625,7 @@ usage()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vfontedpr.c,v 1.3 1994/11/17 08:28:03 jtc Exp $ */
|
||||
/* $NetBSD: vfontedpr.c,v 1.4 1996/03/21 18:08:30 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -43,7 +43,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vfontedpr.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: vfontedpr.c,v 1.3 1994/11/17 08:28:03 jtc Exp $";
|
||||
static char rcsid[] = "$NetBSD: vfontedpr.c,v 1.4 1996/03/21 18:08:30 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -130,7 +130,7 @@ char *language = "c"; /* the language indicator */
|
||||
|
||||
#define ps(x) printf("%s", x)
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -21,7 +21,7 @@ SOFTWARE.
|
||||
************************************************************************/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: bootpd.c,v 1.5 1994/12/23 16:52:31 cgd Exp $";
|
||||
static char rcsid[] = "$Id: bootpd.c,v 1.6 1996/03/21 18:10:30 jtc Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -185,7 +185,7 @@ char *bootpd_dump = DUMPTAB_FILE;
|
||||
* main server loop is started.
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -21,7 +21,7 @@ SOFTWARE.
|
||||
************************************************************************/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: bootpd.c,v 1.5 1994/12/23 16:52:31 cgd Exp $";
|
||||
static char rcsid[] = "$Id: bootpd.c,v 1.6 1996/03/21 18:10:30 jtc Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -185,7 +185,7 @@ char *bootpd_dump = DUMPTAB_FILE;
|
||||
* main server loop is started.
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lpr.c,v 1.9 1995/11/15 22:49:16 pk Exp $ */
|
||||
/* $NetBSD: lpr.c,v 1.10 1996/03/21 18:12:25 jtc Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1989, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -113,7 +113,7 @@ static int test __P((char *));
|
||||
|
||||
uid_t uid, euid;
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lptest.c,v 1.4 1995/11/15 22:50:45 pk Exp $ */
|
||||
/* $NetBSD: lptest.c,v 1.5 1996/03/21 18:13:20 jtc Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -49,7 +49,7 @@ static char sccsid[] = "@(#)lptest.c 8.1 (Berkeley) 6/6/93";
|
||||
/*
|
||||
* lptest -- line printer test program (and other devices).
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pac.c,v 1.6 1996/01/13 23:18:15 pk Exp $ */
|
||||
/* $NetBSD: pac.c,v 1.7 1996/03/21 18:21:20 jtc Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -101,7 +101,7 @@ static struct hent *lookup __P((char []));
|
||||
static int qucmp __P((const void *, const void *));
|
||||
static void rewrite __P((void));
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: named-xfer.c,v 1.1 1996/02/02 15:29:42 mrg Exp $ */
|
||||
/* $NetBSD: named-xfer.c,v 1.2 1996/03/21 18:24:16 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* The original version of xfer by Kevin Dunlap.
|
||||
@ -139,7 +139,7 @@ static const char *soa_zinfo __P((struct zoneinfo *, u_char *, u_char*));
|
||||
extern char *optarg;
|
||||
extern int optind, getopt();
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ns_main.c,v 1.1 1996/02/02 15:28:51 mrg Exp $ */
|
||||
/* $NetBSD: ns_main.c,v 1.2 1996/03/21 18:24:11 jtc Exp $ */
|
||||
|
||||
#if !defined(lint) && !defined(SABER)
|
||||
static char sccsid[] = "@(#)ns_main.c 4.55 (Berkeley) 7/1/91";
|
||||
@ -159,7 +159,7 @@ usage()
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
int
|
||||
main(argc, argv, envp)
|
||||
int argc;
|
||||
char *argv[], *envp[];
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: main.c,v 1.17 1996/03/15 03:03:57 paulus Exp $";
|
||||
static char rcsid[] = "$Id: main.c,v 1.18 1996/03/21 18:25:57 jtc Exp $";
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -137,7 +137,7 @@ struct protent *protocols[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: main.c,v 1.17 1996/03/15 03:03:57 paulus Exp $";
|
||||
static char rcsid[] = "$Id: main.c,v 1.18 1996/03/21 18:25:57 jtc Exp $";
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -137,7 +137,7 @@ struct protent *protocols[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rarpd.c,v 1.11 1996/02/01 21:57:00 mycroft Exp $ */
|
||||
/* $NetBSD: rarpd.c,v 1.12 1996/03/21 18:28:23 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -27,7 +27,7 @@ char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$NetBSD: rarpd.c,v 1.11 1996/02/01 21:57:00 mycroft Exp $";
|
||||
static char rcsid[] = "$NetBSD: rarpd.c,v 1.12 1996/03/21 18:28:23 jtc Exp $";
|
||||
#endif
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ int aflag = 0; /* listen on "all" interfaces */
|
||||
int dflag = 0; /* print debugging messages */
|
||||
int fflag = 0; /* don't fork */
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
Loading…
Reference in New Issue
Block a user