r14393: Fix a couple of AIX warnings.
authorJeremy Allison <jra@samba.org>
Tue, 14 Mar 2006 20:07:36 +0000 (20:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:28 +0000 (11:15 -0500)
Jeremy.
(This used to be commit 8444c997bd3e18b1d04ebe85f06c8c6e34d7373f)

source3/lib/sendfile.c
source3/nsswitch/winbindd_cache.c

index f9f33b8f35e2eb46ccdaa316bbdc9eed6c8cdbcc..f4f6e16526f31f7485370be02f9738d24f3a0059 100644 (file)
@@ -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. */
index cec76996c31b4a8bd890d3ceb378f2ed3ad37aa2..a9381504f2bbd491940522dad1212c60b46ee7f8 100644 (file)
@@ -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 */