From 80b03d929d16b5b77c63486715b60a2980bc6511 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 23 Dec 2011 19:01:56 +0100 Subject: [PATCH] hgfs: resolve gcc -W warnings --- servers/hgfs/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); -- 2.44.0