From fc62d6bf368c950e1e51bc42771cce8b299df42c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 17 Oct 1998 17:41:13 +0000 Subject: Small tidyups for gcc in 'preen' mode.... Jeremy. (This used to be commit 60dc1a4a00a22088d33369588b0d5eb292cf084a) --- source3/lib/getsmbpass.c | 2 +- source3/lib/netmask.c | 5 +++++ source3/lib/replace.c | 5 ++--- source3/lib/ufc.c | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/getsmbpass.c b/source3/lib/getsmbpass.c index 7e544fa8d0..0874529d32 100644 --- a/source3/lib/getsmbpass.c +++ b/source3/lib/getsmbpass.c @@ -151,6 +151,6 @@ char *getsmbpass(char *prompt) } #else - + void getsmbpasswd_dummy(void); void getsmbpasswd_dummy(void) {;} #endif diff --git a/source3/lib/netmask.c b/source3/lib/netmask.c index d9bc06c47a..6d71058375 100644 --- a/source3/lib/netmask.c +++ b/source3/lib/netmask.c @@ -51,6 +51,11 @@ #include #endif +/* + * Prototype for gcc in fussy mode. + */ + +int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask); /**************************************************************************** get the netmask address for a local interface diff --git a/source3/lib/replace.c b/source3/lib/replace.c index 948dfdf9c8..a354458a68 100644 --- a/source3/lib/replace.c +++ b/source3/lib/replace.c @@ -23,9 +23,8 @@ extern int DEBUGLEVEL; - - void replace_dummy(void) -{} + void replace_dummy(void); + void replace_dummy(void) {} #ifndef HAVE_FTRUNCATE diff --git a/source3/lib/ufc.c b/source3/lib/ufc.c index f464953498..86cb41a10c 100644 --- a/source3/lib/ufc.c +++ b/source3/lib/ufc.c @@ -778,6 +778,6 @@ static ufc_long *_ufc_doit(l1, l2, r1, r2, itr) #else - int ufc_dummy_procedure(void) -{return 0;} + int ufc_dummy_procedure(void); + int ufc_dummy_procedure(void) {return 0;} #endif -- cgit