Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2015 00:14:23 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r291042 - stable/10/usr.sbin/bootparamd/bootparamd
Message-ID:  <201511190014.tAJ0EN75019423@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Thu Nov 19 00:14:23 2015
New Revision: 291042
URL: https://svnweb.freebsd.org/changeset/base/291042

Log:
  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/10/usr.sbin/bootparamd/bootparamd/main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bootparamd/bootparamd/main.c
==============================================================================
--- stable/10/usr.sbin/bootparamd/bootparamd/main.c	Thu Nov 19 00:01:52 2015	(r291041)
+++ stable/10/usr.sbin/bootparamd/bootparamd/main.c	Thu Nov 19 00:14:23 2015	(r291042)
@@ -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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511190014.tAJ0EN75019423>