summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-14 20:07:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:28 -0500
commita1c56e451f7c4d6503330bed01a82312b0000f7b (patch)
tree33cdf1c0f9feef662800c451197f91cf8d54e25a
parenta8dd32649bfccb6af3757a04f14b1ee22a663051 (diff)
downloadsamba-a1c56e451f7c4d6503330bed01a82312b0000f7b.tar.gz
samba-a1c56e451f7c4d6503330bed01a82312b0000f7b.tar.bz2
samba-a1c56e451f7c4d6503330bed01a82312b0000f7b.zip
r14393: Fix a couple of AIX warnings.
Jeremy. (This used to be commit 8444c997bd3e18b1d04ebe85f06c8c6e34d7373f)
-rw-r--r--source3/lib/sendfile.c1
-rw-r--r--source3/nsswitch/winbindd_cache.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c
index f9f33b8f35..f4f6e16526 100644
--- a/source3/lib/sendfile.c
+++ b/source3/lib/sendfile.c
@@ -404,7 +404,6 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of
ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T offset, size_t count)
{
- size_t total=0;
struct sf_parms hdtrl;
/* Set up the header/trailer struct params. */
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index cec76996c3..a9381504f2 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -83,7 +83,9 @@ void winbindd_check_cache_size(time_t t)
static struct winbind_cache *get_cache(struct winbindd_domain *domain)
{
struct winbind_cache *ret = wcache;
+#ifdef HAVE_ADS
struct winbindd_domain *our_domain = domain;
+#endif
/* we have to know what type of domain we are dealing with first */