diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-17 17:41:13 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-17 17:41:13 +0000 |
commit | fc62d6bf368c950e1e51bc42771cce8b299df42c (patch) | |
tree | dd94abd7d29279fe57050b702203538eaf345916 /source3/lib | |
parent | 676cac1e42ecbc30fe6ded64751163c1c33466d1 (diff) | |
download | samba-fc62d6bf368c950e1e51bc42771cce8b299df42c.tar.gz samba-fc62d6bf368c950e1e51bc42771cce8b299df42c.tar.bz2 samba-fc62d6bf368c950e1e51bc42771cce8b299df42c.zip |
Small tidyups for gcc in 'preen' mode....
Jeremy.
(This used to be commit 60dc1a4a00a22088d33369588b0d5eb292cf084a)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/getsmbpass.c | 2 | ||||
-rw-r--r-- | source3/lib/netmask.c | 5 | ||||
-rw-r--r-- | source3/lib/replace.c | 5 | ||||
-rw-r--r-- | source3/lib/ufc.c | 4 |
4 files changed, 10 insertions, 6 deletions
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 <sys/sockio.h> #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 |