]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Fix some trivial warnings with bootparamd/main.c
authorngie <ngie@FreeBSD.org>
Tue, 10 Nov 2015 11:19:36 +0000 (11:19 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 10 Nov 2015 11:19:36 +0000 (11:19 +0000)
- Convert K&R to something a bit less ancient
- Remove an incorrect, duplicate prototype for bootparamprog_1(..)

MFC after: 1 week
PR: 71667
Submitted by: bcran
Sponsored by: EMC / Isilon Storage Division

usr.sbin/bootparamd/bootparamd/main.c

index 85a1fca429a8ca5bf3f738782ac319815e490eba..04f5ceffe36c25dd974a7984e1d370fb7eb0772e 100644 (file)
@@ -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");