svn commit: r322635 - head/usr.sbin/bootparamd/callbootd
Ngie Cooper
ngie at FreeBSD.org
Thu Aug 17 20:37:03 UTC 2017
Author: ngie
Date: Thu Aug 17 20:37:01 2017
New Revision: 322635
URL: https://svnweb.freebsd.org/changeset/base/322635
Log:
Fix WARNS
- Remove ad hoc inet_ntoa prototype declaration; it's already handled
by the included headers.
- De-K&Rify the function prototypes for eachres_whoami(..),
eachres_getfile(..), and main(..).
MFC after: 1 week
PR: 71667
Tested with: clang (5.0), gcc (4.2.1, 5)
Modified:
head/usr.sbin/bootparamd/callbootd/callbootd.c
Modified: head/usr.sbin/bootparamd/callbootd/callbootd.c
==============================================================================
--- head/usr.sbin/bootparamd/callbootd/callbootd.c Thu Aug 17 20:25:50 2017 (r322634)
+++ head/usr.sbin/bootparamd/callbootd/callbootd.c Thu Aug 17 20:37:01 2017 (r322635)
@@ -32,15 +32,12 @@ int broadcast;
char cln[MAX_MACHINE_NAME+1];
char dmn[MAX_MACHINE_NAME+1];
char path[MAX_PATH_LEN+1];
-extern char *inet_ntoa();
static void usage(void);
int printgetfile(bp_getfile_res *);
int printwhoami(bp_whoami_res *);
-bool_t
-eachres_whoami(resultp, raddr)
-bp_whoami_res *resultp;
-struct sockaddr_in *raddr;
+static bool_t
+eachres_whoami(bp_whoami_res *resultp, struct sockaddr_in *raddr)
{
struct hostent *he;
@@ -51,10 +48,8 @@ struct sockaddr_in *raddr;
return(0);
}
-bool_t
-eachres_getfile(resultp, raddr)
-bp_getfile_res *resultp;
-struct sockaddr_in *raddr;
+static bool_t
+eachres_getfile(bp_getfile_res *resultp, struct sockaddr_in *raddr)
{
struct hostent *he;
@@ -67,9 +62,7 @@ struct sockaddr_in *raddr;
int
-main(argc, argv)
-int argc;
-char **argv;
+main(int argc, char **argv)
{
char *server;
More information about the svn-src-all
mailing list