Skip to content

Commit

Permalink
Fix warning: return type of main' is not int'
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkHelmet433 committed Sep 15, 1999
1 parent 86df52f commit 9751ab2
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 17 deletions.
4 changes: 3 additions & 1 deletion contrib/cpio/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
David MacKenzie <[email protected]>,
and John Oleynick <[email protected]>. */

/* $FreeBSD$ */

#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
Expand Down Expand Up @@ -498,7 +500,7 @@ initialize_buffers ()
bzero (zeros_512, 512);
}

void
int
main (argc, argv)
int argc;
char *argv[];
Expand Down
8 changes: 7 additions & 1 deletion games/caesar/caesar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -75,7 +80,8 @@ double stdf[26] = {

void printit();

void main(argc, argv)
int
main(argc, argv)
int argc;
char **argv;
{
Expand Down
7 changes: 6 additions & 1 deletion games/fortune/strfile/strfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
{
Expand Down
7 changes: 6 additions & 1 deletion games/fortune/unstr/unstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/*
Expand Down Expand Up @@ -72,7 +77,7 @@ FILE *Inf, *Dataf;
void getargs(), order_unstr();

/* ARGSUSED */
void main(ac, av)
int main(ac, av)
int ac;
char **av;
{
Expand Down
2 changes: 1 addition & 1 deletion usr.bin/tip/tip/tip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
{
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/apmd/apmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ event_loop(void)
return;
}

void
int
main(int ac, char* av[])
{
int ch;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/kbdcontrol/kbdcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ usage()
}


void
int
main(int argc, char **argv)
{
int opt;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/moused/moused.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/rarpd/rarpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static u_char zero[6];

int sflag = 0; /* ignore /tftpboot */

void
int
main(argc, argv)
int argc;
char **argv;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/stallion/stlload/stlload.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ int download()

/*****************************************************************************/

void main(int argc, char *argv[])
int main(int argc, char *argv[])
{
struct stat statinfo;
int c;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/stallion/stlstats/stlstats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/watch/watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ ask_dev(dev_name, msg)

#define READB_LEN 5

void
int
main(ac, av)
int ac;
char **av;
Expand Down
4 changes: 3 additions & 1 deletion usr.sbin/xntpd/authstuff/md5driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
***********************************************************************
*/

/* $FreeBSD$ */

#include <stdio.h>
#include <sys/types.h>
#include <time.h>
Expand Down Expand Up @@ -176,7 +178,7 @@ MDTestSuite ()
("12345678901234567890123456789012345678901234567890123456789012345678901234567890");
}

void
int
main (argc, argv)
int argc;
char *argv[];
Expand Down
4 changes: 3 additions & 1 deletion usr.sbin/xntpd/ntpdate/ntpdate.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* ntpdate - set the time of day by polling one or more NTP servers
*
* $FreeBSD$
*/
#include <stdio.h>
#include <signal.h>
Expand Down Expand Up @@ -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[];
Expand Down
4 changes: 3 additions & 1 deletion usr.sbin/xntpd/ntpq/ntpq.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* ntpq - query an NTP server using mode 6 commands
*
* $FreeBSD$
*/
#include <stdio.h>
#include <ctype.h>
Expand Down Expand Up @@ -512,7 +514,7 @@ int debug;
/*
* main - parse arguments and handle options
*/
void
int
main(argc, argv)
int argc;
char *argv[];
Expand Down
4 changes: 3 additions & 1 deletion usr.sbin/xntpd/ntptrace/ntptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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[];
Expand Down
4 changes: 3 additions & 1 deletion usr.sbin/xntpd/xntpd/ntpd.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* ntpd.c - main program for the fixed point NTP daemon
*
* $FreeBSD$
*/
#include <stdio.h>
#include <errno.h>
Expand Down Expand Up @@ -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[];
Expand Down

0 comments on commit 9751ab2

Please sign in to comment.