1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

Small tidyups for gcc in 'preen' mode....

Jeremy.
(This used to be commit 60dc1a4a00)
This commit is contained in:
Jeremy Allison
1998-10-17 17:41:13 +00:00
parent 676cac1e42
commit fc62d6bf36
14 changed files with 25 additions and 11 deletions

View File

@ -151,6 +151,6 @@ char *getsmbpass(char *prompt)
} }
#else #else
void getsmbpasswd_dummy(void);
void getsmbpasswd_dummy(void) {;} void getsmbpasswd_dummy(void) {;}
#endif #endif

View File

@ -51,6 +51,11 @@
#include <sys/sockio.h> #include <sys/sockio.h>
#endif #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 get the netmask address for a local interface

View File

@ -23,9 +23,8 @@
extern int DEBUGLEVEL; extern int DEBUGLEVEL;
void replace_dummy(void);
void replace_dummy(void) void replace_dummy(void) {}
{}
#ifndef HAVE_FTRUNCATE #ifndef HAVE_FTRUNCATE

View File

@ -778,6 +778,6 @@ static ufc_long *_ufc_doit(l1, l2, r1, r2, itr)
#else #else
int ufc_dummy_procedure(void) int ufc_dummy_procedure(void);
{return 0;} int ufc_dummy_procedure(void) {return 0;}
#endif #endif

View File

@ -22,6 +22,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "includes.h"
/* NOTES: /* NOTES:

View File

@ -1071,6 +1071,6 @@ struct share_ops *locking_slow_init(int ronly)
return &share_ops; return &share_ops;
} }
#else #else
int locking_slow_dummy_procedure(void) int locking_slow_dummy_procedure(void);
{return 0;} int locking_slow_dummy_procedure(void) {return 0;}
#endif /* !FAST_SHARE_MODES */ #endif /* !FAST_SHARE_MODES */

View File

@ -993,5 +993,6 @@ struct passdb_ops *ldap_initialize_password_db(void)
} }
#else #else
void dummy_function(void);
void dummy_function(void) { } /* stop some compilers complaining */ void dummy_function(void) { } /* stop some compilers complaining */
#endif #endif

View File

@ -673,6 +673,7 @@ struct passdb_ops *nisplus_initialize_password_db(void)
} }
#else #else
void nisplus_dummy_function(void);
void nisplus_dummy_function(void) { } /* stop some compilers complaining */ void nisplus_dummy_function(void) { } /* stop some compilers complaining */
#endif /* WITH_NISPLUS */ #endif /* WITH_NISPLUS */

View File

@ -117,5 +117,6 @@ int sysv_printername_ok(char *name)
#else #else
/* this keeps fussy compilers happy */ /* this keeps fussy compilers happy */
void print_svid_dummy(void);
void print_svid_dummy(void) {} void print_svid_dummy(void) {}
#endif #endif

View File

@ -585,7 +585,7 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num,
BOOL ret; BOOL ret;
BOOL auth_verify; BOOL auth_verify;
BOOL auth_seal; BOOL auth_seal;
uint32 crc32; uint32 crc32 = 0;
auth_verify = IS_BITS_SET_ALL(cli->ntlmssp_srv_flgs, NTLMSSP_NEGOTIATE_SIGN); auth_verify = IS_BITS_SET_ALL(cli->ntlmssp_srv_flgs, NTLMSSP_NEGOTIATE_SIGN);
auth_seal = IS_BITS_SET_ALL(cli->ntlmssp_srv_flgs, NTLMSSP_NEGOTIATE_SEAL); auth_seal = IS_BITS_SET_ALL(cli->ntlmssp_srv_flgs, NTLMSSP_NEGOTIATE_SEAL);

View File

@ -9,6 +9,6 @@ extern int DEBUGLEVEL;
#else /* USE_LDAP */ #else /* USE_LDAP */
/* this keeps fussy compilers happy */ /* this keeps fussy compilers happy */
void ldap_helper_dummy(void) void ldap_helper_dummy(void);
{} void ldap_helper_dummy(void) {}
#endif /* USE_LDAP */ #endif /* USE_LDAP */

View File

@ -661,6 +661,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
#else #else
/* this keeps fussy compilers happy */ /* this keeps fussy compilers happy */
void quotas_dummy(void);
void quotas_dummy(void) {} void quotas_dummy(void) {}
#endif /* QUOTAS */ #endif /* QUOTAS */

View File

@ -261,5 +261,6 @@ char *reqHosts, *resignHosts;
} }
#else /* WITH_SSL */ #else /* WITH_SSL */
void ssl_dummy(void);
void ssl_dummy(void) {;} /* So some compilers don't complain. */ void ssl_dummy(void) {;} /* So some compilers don't complain. */
#endif /* WITH_SSL */ #endif /* WITH_SSL */

View File

@ -1417,6 +1417,10 @@ struct kernel_stat {
unsigned long int __unused5; unsigned long int __unused5;
}; };
/*
* Prototype for gcc in 'fussy' mode.
*/
void xstat_convert(int vers, struct stat *st, struct kernel_stat *kbuf);
void xstat_convert(int vers, struct stat *st, struct kernel_stat *kbuf) void xstat_convert(int vers, struct stat *st, struct kernel_stat *kbuf)
{ {
#ifdef _STAT_VER_LINUX_OLD #ifdef _STAT_VER_LINUX_OLD