diff options
author | Jeff Layton <jlayton@samba.org> | 2013-07-18 10:14:21 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2013-07-18 10:14:21 -0400 |
commit | e18d42adddbea9178d93b6051132f9cdee4cc9e0 (patch) | |
tree | 36531a5d2b9f74bd818f3667754b5efa85f41f50 /cifs.upcall.c | |
parent | fe230e5ecaed98d3bb70292b60d44c3c7c47c720 (diff) | |
download | cifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.tar.gz cifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.tar.bz2 cifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.zip |
cifs-utils: fix some sparse warnings
Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'cifs.upcall.c')
-rw-r--r-- | cifs.upcall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index c16bdfd..20b562f 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -244,7 +244,7 @@ init_cc_from_keytab(const char *keytab_name, const char *user) if (ccname == NULL) syslog(LOG_ERR, "Unable to allocate memory"); icfk_cleanup: - my_creds.client = 0; + my_creds.client = (krb5_principal)0; krb5_free_cred_contents(context, &my_creds); if (me) @@ -808,7 +808,7 @@ static void usage(void) fprintf(stderr, "Usage: %s [ -K /path/to/keytab] [-k /path/to/krb5.conf] [-t] [-v] [-l] key_serial\n", prog); } -const struct option long_options[] = { +static const struct option long_options[] = { {"krb5conf", 1, NULL, 'k'}, {"legacy-uid", 0, NULL, 'l'}, {"trust-dns", 0, NULL, 't'}, |