diff options
author | peter <peter@FreeBSD.org> | 1999-09-15 01:58:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-09-15 01:58:44 +0000 |
commit | 9751ab22aebd4e0dc1a47417f01e8e6471427840 (patch) | |
tree | f600607dae931af96b85ffc6096825041bedd739 /usr.sbin/xntpd | |
parent | 86df52f412c220bacae074173eb61b229ecdbbf3 (diff) | |
download | FreeBSD-src-9751ab22aebd4e0dc1a47417f01e8e6471427840.zip FreeBSD-src-9751ab22aebd4e0dc1a47417f01e8e6471427840.tar.gz |
Fix warning: return type of `main' is not `int'
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r-- | usr.sbin/xntpd/authstuff/md5driver.c | 4 | ||||
-rw-r--r-- | usr.sbin/xntpd/ntpdate/ntpdate.c | 4 | ||||
-rw-r--r-- | usr.sbin/xntpd/ntpq/ntpq.c | 4 | ||||
-rw-r--r-- | usr.sbin/xntpd/ntptrace/ntptrace.c | 4 | ||||
-rw-r--r-- | usr.sbin/xntpd/xntpd/ntpd.c | 4 |
5 files changed, 15 insertions, 5 deletions
diff --git a/usr.sbin/xntpd/authstuff/md5driver.c b/usr.sbin/xntpd/authstuff/md5driver.c index 0d7e132..aef597c 100644 --- a/usr.sbin/xntpd/authstuff/md5driver.c +++ b/usr.sbin/xntpd/authstuff/md5driver.c @@ -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[]; diff --git a/usr.sbin/xntpd/ntpdate/ntpdate.c b/usr.sbin/xntpd/ntpdate/ntpdate.c index 6088328..1d2c7d5 100644 --- a/usr.sbin/xntpd/ntpdate/ntpdate.c +++ b/usr.sbin/xntpd/ntpdate/ntpdate.c @@ -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[]; diff --git a/usr.sbin/xntpd/ntpq/ntpq.c b/usr.sbin/xntpd/ntpq/ntpq.c index 2c5eacf..186408a 100644 --- a/usr.sbin/xntpd/ntpq/ntpq.c +++ b/usr.sbin/xntpd/ntpq/ntpq.c @@ -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[]; diff --git a/usr.sbin/xntpd/ntptrace/ntptrace.c b/usr.sbin/xntpd/ntptrace/ntptrace.c index 206c738..0c54fdf 100644 --- a/usr.sbin/xntpd/ntptrace/ntptrace.c +++ b/usr.sbin/xntpd/ntptrace/ntptrace.c @@ -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[]; diff --git a/usr.sbin/xntpd/xntpd/ntpd.c b/usr.sbin/xntpd/xntpd/ntpd.c index ae06f56..bd36004 100644 --- a/usr.sbin/xntpd/xntpd/ntpd.c +++ b/usr.sbin/xntpd/xntpd/ntpd.c @@ -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[]; |