summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bootparamd
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-19 00:14:23 +0000
committerngie <ngie@FreeBSD.org>2015-11-19 00:14:23 +0000
commit0e1eba29ebfb5b57e23cb68dcba44137c4b6eff3 (patch)
treefb05768eb44da9ca24ddd1e7082f3534abff83c6 /usr.sbin/bootparamd
parent2893d99e1e3fa2cfc58b8d42cf526ff41c75f838 (diff)
downloadFreeBSD-src-0e1eba29ebfb5b57e23cb68dcba44137c4b6eff3.zip
FreeBSD-src-0e1eba29ebfb5b57e23cb68dcba44137c4b6eff3.tar.gz
MFC r290645:
Fix some trivial warnings with bootparamd/main.c - Convert K&R to something a bit less ancient - Remove an incorrect, duplicate prototype for bootparamprog_1(..) PR: 71667 Submitted by: bcran Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.sbin/bootparamd')
-rw-r--r--usr.sbin/bootparamd/bootparamd/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bootparamd/bootparamd/main.c b/usr.sbin/bootparamd/bootparamd/main.c
index 8c93c1f..8917a2f 100644
--- a/usr.sbin/bootparamd/bootparamd/main.c
+++ b/usr.sbin/bootparamd/bootparamd/main.c
@@ -36,13 +36,10 @@ in_addr_t route_addr = -1;
struct sockaddr_in my_addr;
char *bootpfile = "/etc/bootparams";
-extern void bootparamprog_1();
static void usage(void);
int
-main(argc, argv)
-int argc;
-char **argv;
+main(int argc, char **argv)
{
SVCXPRT *transp;
struct hostent *he;
@@ -110,7 +107,7 @@ char **argv;
}
static void
-usage()
+usage(void)
{
fprintf(stderr,
"usage: bootparamd [-d] [-s] [-r router] [-f bootparmsfile]\n");
OpenPOWER on IntegriCloud