summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bootparamd
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-10 11:19:36 +0000
committerngie <ngie@FreeBSD.org>2015-11-10 11:19:36 +0000
commit8cf5ac1847b127eb85e54328afd2bdebfbe3962f (patch)
tree44ebe4492b965cc79ac61b91d49304c9ee1c58ac /usr.sbin/bootparamd
parent62de1ff2b2a6eb4f2f506432798b4df2a4961416 (diff)
downloadFreeBSD-src-8cf5ac1847b127eb85e54328afd2bdebfbe3962f.zip
FreeBSD-src-8cf5ac1847b127eb85e54328afd2bdebfbe3962f.tar.gz
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
Diffstat (limited to 'usr.sbin/bootparamd')
-rw-r--r--usr.sbin/bootparamd/bootparamd/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bootparamd/bootparamd/main.c b/usr.sbin/bootparamd/bootparamd/main.c
index 85a1fca..04f5cef 100644
--- a/usr.sbin/bootparamd/bootparamd/main.c
+++ b/usr.sbin/bootparamd/bootparamd/main.c
@@ -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");
OpenPOWER on IntegriCloud