svn commit: r291043 - stable/9/usr.sbin/bootparamd/bootparamd

Garrett Cooper ngie at FreeBSD.org
Thu Nov 19 00:19:11 UTC 2015


Author: ngie
Date: Thu Nov 19 00:19:09 2015
New Revision: 291043
URL: https://svnweb.freebsd.org/changeset/base/291043

Log:
  MFstable/10 r291042:
  
  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

Modified:
  stable/9/usr.sbin/bootparamd/bootparamd/main.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/usr.sbin/   (props changed)
  stable/9/usr.sbin/bootparamd/   (props changed)

Modified: stable/9/usr.sbin/bootparamd/bootparamd/main.c
==============================================================================
--- stable/9/usr.sbin/bootparamd/bootparamd/main.c	Thu Nov 19 00:14:23 2015	(r291042)
+++ stable/9/usr.sbin/bootparamd/bootparamd/main.c	Thu Nov 19 00:19:09 2015	(r291043)
@@ -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-stable-9 mailing list