Fix warning: return type of main' is not
int'
This commit is contained in:
parent
62998af2a6
commit
e46b89dc93
@ -19,6 +19,8 @@
|
||||
David MacKenzie <djm@gnu.ai.mit.edu>,
|
||||
and John Oleynick <juo@klinzhai.rutgers.edu>. */
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/types.h>
|
||||
@ -498,7 +500,7 @@ initialize_buffers ()
|
||||
bzero (zeros_512, 512);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -46,7 +46,12 @@ static const char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <errno.h>
|
||||
@ -75,7 +80,8 @@ double stdf[26] = {
|
||||
|
||||
void printit();
|
||||
|
||||
void main(argc, argv)
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
|
@ -41,7 +41,12 @@ static const char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
# include <sys/param.h>
|
||||
@ -134,7 +139,7 @@ int cmp_str();
|
||||
* CHUNKSIZE blocks; if the latter, we just write each pointer,
|
||||
* and then seek back to the beginning to write in the table.
|
||||
*/
|
||||
void main(ac, av)
|
||||
int main(ac, av)
|
||||
int ac;
|
||||
char **av;
|
||||
{
|
||||
|
@ -41,7 +41,12 @@ static const char copyright[] =
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -72,7 +77,7 @@ FILE *Inf, *Dataf;
|
||||
void getargs(), order_unstr();
|
||||
|
||||
/* ARGSUSED */
|
||||
void main(ac, av)
|
||||
int main(ac, av)
|
||||
int ac;
|
||||
char **av;
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ void daemon_uid __P((void));
|
||||
void user_uid __P((void));
|
||||
int speed __P((int));
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
char *argv[];
|
||||
{
|
||||
|
@ -480,7 +480,7 @@ event_loop(void)
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main(int ac, char* av[])
|
||||
{
|
||||
int ch;
|
||||
|
@ -991,7 +991,7 @@ usage()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int opt;
|
||||
|
@ -423,7 +423,7 @@ static void mremote_clientchg(int add);
|
||||
|
||||
static int kidspad(u_char rxc, mousestatus_t *act);
|
||||
|
||||
void
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int c;
|
||||
|
@ -160,7 +160,7 @@ static u_char zero[6];
|
||||
|
||||
int sflag = 0; /* ignore /tftpboot */
|
||||
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -423,7 +423,7 @@ int download()
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void main(int argc, char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct stat statinfo;
|
||||
int c;
|
||||
|
@ -497,7 +497,7 @@ void localexit(int nr)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void main(int argc, char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct stat statinfo;
|
||||
int c, useport;
|
||||
|
@ -282,7 +282,7 @@ ask_dev(dev_name, msg)
|
||||
|
||||
#define READB_LEN 5
|
||||
|
||||
void
|
||||
int
|
||||
main(ac, av)
|
||||
int ac;
|
||||
char **av;
|
||||
|
@ -22,6 +22,8 @@
|
||||
***********************************************************************
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
@ -176,7 +178,7 @@ MDTestSuite ()
|
||||
("12345678901234567890123456789012345678901234567890123456789012345678901234567890");
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,5 +1,7 @@
|
||||
/*
|
||||
* ntpdate - set the time of day by polling one or more NTP servers
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
@ -156,7 +158,7 @@ static void printserver P((struct server *, FILE *));
|
||||
* Main program. Initialize us and loop waiting for I/O and/or
|
||||
* timer expiries.
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,5 +1,7 @@
|
||||
/*
|
||||
* ntpq - query an NTP server using mode 6 commands
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
@ -512,7 +514,7 @@ int debug;
|
||||
/*
|
||||
* main - parse arguments and handle options
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -7,6 +7,8 @@
|
||||
* Inspired by a script written by Glenn Trewitt
|
||||
*
|
||||
* Large portions stolen from ntpdate.c
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
@ -103,7 +105,7 @@ static void printrefid P((FILE *, struct server *));
|
||||
* Main program. Initialize us and loop waiting for I/O and/or
|
||||
* timer expiries.
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
@ -1,5 +1,7 @@
|
||||
/*
|
||||
* ntpd.c - main program for the fixed point NTP daemon
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
@ -95,7 +97,7 @@ static RETSIGTYPE lessdebug P((int));
|
||||
* Main program. Initialize us, disconnect us from the tty if necessary,
|
||||
* and loop waiting for I/O and/or timer expiries.
|
||||
*/
|
||||
void
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
Loading…
Reference in New Issue
Block a user