summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-03 06:58:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:42 -0500
commita168730dda8f6917bf89d82824060cdd815c7297 (patch)
tree5748e06fd42c9687322f22b7a4ac4655cee1612e /source3
parentd1f91f7c723733113b4e9792042101c80dfc064c (diff)
downloadsamba-a168730dda8f6917bf89d82824060cdd815c7297.tar.gz
samba-a168730dda8f6917bf89d82824060cdd815c7297.tar.bz2
samba-a168730dda8f6917bf89d82824060cdd815c7297.zip
r12045: More warning fixes... Just a few more to go.
Jeremy. (This used to be commit cd192ed79a531c6775cdbfb35f0eb2e0fa230ce9)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c2
-rw-r--r--source3/nsswitch/winbindd_ads.c2
-rw-r--r--source3/utils/net_lookup.c2
-rw-r--r--source3/utils/smbcquotas.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index ad3387ffdd..5afe154cbb 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1097,6 +1097,8 @@ static void do_tarput(void)
char *longfilename = NULL, linkflag;
int skip = False;
+ ZERO_STRUCT(finfo);
+
GetTimeOfDay(&tp_start);
DEBUG(5, ("RJS do_tarput called ...\n"));
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index ac24b35229..29129e823a 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -621,7 +621,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
goto done;
}
- rc = ads_search_retry_dn(ads, (void**)&msg, user_dn, attrs);
+ rc = ads_search_retry_dn(ads, (void**)(void *)&msg, user_dn, attrs);
if (!ADS_ERR_OK(rc)) {
status = ads_ntstatus(rc);
DEBUG(1,("lookup_usergroups(sid=%s) ads_search tokenGroups: %s\n",
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index cd62245600..8ee63515d4 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -211,7 +211,7 @@ static int net_lookup_kdc(int argc, const char **argv)
realm.length = strlen(realm.data);
}
- rc = krb5_locate_kdc(ctx, &realm, (struct sockaddr **) &addrs, &num_kdcs, 0);
+ rc = krb5_locate_kdc(ctx, &realm, (struct sockaddr **)(void *)&addrs, &num_kdcs, 0);
if (rc) {
DEBUG(1, ("krb5_locate_kdc failed (%s)\n", error_message(rc)));
return -1;
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index c516fbb218..be7c2c64e6 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -396,7 +396,7 @@ static struct cli_state *connect_one(const char *share)
pstring username_str = {0};
pstring path = {0};
pstring set_str = {0};
- enum SMB_QUOTA_TYPE qtype;
+ enum SMB_QUOTA_TYPE qtype = SMB_INVALID_QUOTA_TYPE;
int cmd = 0;
static BOOL test_args = False;
struct cli_state *cli;