From 1c4bbe06549d86614318718a45b9bc48e3bfc81f Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 2 May 2005 17:49:43 +0000 Subject: r6586: get rid of a few more compiler warnings (This used to be commit 173375f8d88bf8e8db8d60e5d5f0e5dcc28767d9) --- source3/lib/dummyroot.c | 3 +++ source3/lib/dummysmbd.c | 2 ++ source3/lib/interfaces.c | 2 ++ source3/lib/sysquotas.c | 2 ++ source3/lib/sysquotas_4A.c | 2 ++ source3/lib/sysquotas_linux.c | 2 ++ source3/lib/sysquotas_xfs.c | 2 ++ 7 files changed, 15 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c index c8465cb791..75263ed232 100644 --- a/source3/lib/dummyroot.c +++ b/source3/lib/dummyroot.c @@ -22,6 +22,9 @@ /* Stupid dummy functions required due to the horrible dependency mess in Samba. */ +void become_root(void); +void unbecome_root(void); + void become_root(void) { return; diff --git a/source3/lib/dummysmbd.c b/source3/lib/dummysmbd.c index 17bc321774..153ca5cd8c 100644 --- a/source3/lib/dummysmbd.c +++ b/source3/lib/dummysmbd.c @@ -22,6 +22,8 @@ /* Stupid dummy functions required due to the horrible dependency mess in Samba. */ +void decrement_smbd_process_count( void ); + void decrement_smbd_process_count( void ) { return; diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c index 96f4b4cd94..dc30bdce47 100644 --- a/source3/lib/interfaces.c +++ b/source3/lib/interfaces.c @@ -358,6 +358,8 @@ static int iface_comp(struct iface_struct *i1, struct iface_struct *i2) /* this wrapper is used to remove duplicates from the interface list generated above */ +int get_interfaces(struct iface_struct *ifaces, int max_interfaces); + int get_interfaces(struct iface_struct *ifaces, int max_interfaces) { int total, i, j; diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 61e2382bc9..52a598a4e6 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -497,6 +497,8 @@ int sys_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DI } #else /* HAVE_SYS_QUOTAS */ + void dummy_sysquotas_c(void); + void dummy_sysquotas_c(void) { return; diff --git a/source3/lib/sysquotas_4A.c b/source3/lib/sysquotas_4A.c index ffb4123799..5a7d84fca9 100644 --- a/source3/lib/sysquotas_4A.c +++ b/source3/lib/sysquotas_4A.c @@ -335,5 +335,7 @@ int sys_set_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt } #else /* HAVE_QUOTACTL_4A */ + void dummy_sysquotas_4A(void); + void dummy_sysquotas_4A(void){} #endif /* HAVE_QUOTACTL_4A */ diff --git a/source3/lib/sysquotas_linux.c b/source3/lib/sysquotas_linux.c index 3867c1b0f9..4c024b04cc 100644 --- a/source3/lib/sysquotas_linux.c +++ b/source3/lib/sysquotas_linux.c @@ -556,5 +556,7 @@ int sys_set_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt } #else /* HAVE_QUOTACTL_LINUX */ + void dummy_sysquotas_linux(void); + void dummy_sysquotas_linux(void){} #endif /* HAVE_QUOTACTL_LINUX */ diff --git a/source3/lib/sysquotas_xfs.c b/source3/lib/sysquotas_xfs.c index 9fe4ec0d99..950fb30f04 100644 --- a/source3/lib/sysquotas_xfs.c +++ b/source3/lib/sysquotas_xfs.c @@ -329,5 +329,7 @@ int sys_set_xfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt } #else /* HAVE_XFS_QUOTAS */ + void dummy_sysquotas_xfs(void); + void dummy_sysquotas_xfs(void){} #endif /* HAVE_XFS_QUOTAS */ -- cgit