summaryrefslogtreecommitdiff
path: root/auth/credentials
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-21 13:06:00 -0800
committerJeremy Allison <jra@samba.org>2011-11-21 23:39:08 +0100
commit3e6e1aed949a4483fc38607e443b5c8b715aca3b (patch)
tree631d089cbae788cd8c68442774bdc6720dbc07ab /auth/credentials
parentaa2e415442fe121a3db5fa79e53ad732d78e9572 (diff)
downloadsamba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.gz
samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.tar.bz2
samba-3e6e1aed949a4483fc38607e443b5c8b715aca3b.zip
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
Diffstat (limited to 'auth/credentials')
-rw-r--r--auth/credentials/credentials_krb5.c4
-rw-r--r--auth/credentials/credentials_secrets.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c
index 7130e4164d..1b7be3f63c 100644
--- a/auth/credentials/credentials_krb5.c
+++ b/auth/credentials/credentials_krb5.c
@@ -432,8 +432,8 @@ _PUBLIC_ void cli_credentials_invalidate_ccache(struct cli_credentials *cred,
static int free_gssapi_creds(struct gssapi_creds_container *gcc)
{
- OM_uint32 min_stat, maj_stat;
- maj_stat = gss_release_cred(&min_stat, &gcc->creds);
+ OM_uint32 min_stat;
+ (void)gss_release_cred(&min_stat, &gcc->creds);
return 0;
}
diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c
index d86032a564..bc08d9da9a 100644
--- a/auth/credentials/credentials_secrets.c
+++ b/auth/credentials/credentials_secrets.c
@@ -55,7 +55,6 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred,
const char *machine_account;
const char *password;
- const char *old_password;
const char *domain;
const char *realm;
enum netr_SchannelType sct;
@@ -99,7 +98,6 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred,
}
password = ldb_msg_find_attr_as_string(msg, "secret", NULL);
- old_password = ldb_msg_find_attr_as_string(msg, "priorSecret", NULL);
machine_account = ldb_msg_find_attr_as_string(msg, "samAccountName", NULL);