svn commit: r290645 - head/usr.sbin/bootparamd/bootparamd
Garrett Cooper
ngie at FreeBSD.org
Tue Nov 10 11:19:38 UTC 2015
Author: ngie
Date: Tue Nov 10 11:19:36 2015
New Revision: 290645
URL: https://svnweb.freebsd.org/changeset/base/290645
Log:
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(..)
MFC after: 1 week
PR: 71667
Submitted by: bcran
Sponsored by: EMC / Isilon Storage Division
Modified:
head/usr.sbin/bootparamd/bootparamd/main.c
Modified: head/usr.sbin/bootparamd/bootparamd/main.c
==============================================================================
--- head/usr.sbin/bootparamd/bootparamd/main.c Tue Nov 10 11:04:23 2015 (r290644)
+++ head/usr.sbin/bootparamd/bootparamd/main.c Tue Nov 10 11:19:36 2015 (r290645)
@@ -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");
More information about the svn-src-all
mailing list