From: David van Moolenbroek Date: Fri, 23 Dec 2011 18:01:56 +0000 (+0100) Subject: hgfs: resolve gcc -W warnings X-Git-Tag: v3.2.0~153 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=80b03d929d16b5b77c63486715b60a2980bc6511;p=minix.git hgfs: resolve gcc -W warnings --- diff --git a/servers/hgfs/main.c b/servers/hgfs/main.c index 61ac1c64c..f7b915942 100644 --- a/servers/hgfs/main.c +++ b/servers/hgfs/main.c @@ -24,7 +24,7 @@ PRIVATE struct optset optset_table[] = { { "dmask", OPT_INT, &opt.dir_mask, 8 }, { "icase", OPT_BOOL, &opt.case_insens, TRUE }, { "noicase", OPT_BOOL, &opt.case_insens, FALSE }, - { NULL } + { NULL, 0, NULL, 0 } }; /* SEF functions and variables. */ @@ -35,9 +35,7 @@ FORWARD _PROTOTYPE( void sef_cb_signal_handler, (int signo) ); /*===========================================================================* * sef_cb_init_fresh * *===========================================================================*/ -PRIVATE int sef_cb_init_fresh(type, info) -int type; -sef_init_info_t *info; +PRIVATE int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)) { /* Initialize this file server. Called at startup time. */ @@ -96,7 +94,7 @@ PRIVATE void sef_cb_signal_handler(int signo) /*===========================================================================* * sef_local_startup * *===========================================================================*/ -PRIVATE void sef_local_startup() +PRIVATE void sef_local_startup(void) { /* Register init callbacks. */ sef_setcb_init_fresh(sef_cb_init_fresh);