summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-09-30 20:50:31 +0000
committerngie <ngie@FreeBSD.org>2017-09-30 20:50:31 +0000
commit71f6313ba077addf76c9ca646c80c305ca6e3978 (patch)
treec060402dc417037029356795f951a7e36da6e5aa
parente148a2bc415da42f505db277466976fcc00f29ef (diff)
downloadFreeBSD-src-71f6313ba077addf76c9ca646c80c305ca6e3978.zip
FreeBSD-src-71f6313ba077addf76c9ca646c80c305ca6e3978.tar.gz
MFC r322635:
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(..). PR: 71667 Tested with: clang (5.0), gcc (4.2.1, 5)
-rw-r--r--usr.sbin/bootparamd/callbootd/callbootd.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/usr.sbin/bootparamd/callbootd/callbootd.c b/usr.sbin/bootparamd/callbootd/callbootd.c
index a0a4ef6..02f9064 100644
--- a/usr.sbin/bootparamd/callbootd/callbootd.c
+++ b/usr.sbin/bootparamd/callbootd/callbootd.c
@@ -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;
OpenPOWER on IntegriCloud