From: Kevin Coffman Date: Fri, 13 Oct 2006 19:35:43 +0000 (-0400) Subject: Fix misc warning messages X-Git-Tag: nfs-utils-1-0-11~46 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4e380407c546d944017f54f83d24a73f8fd35884;p=nfs-utils.git Fix misc warning messages Signed-off-by: Kevin Coffman Clean up a few warning messages. --- diff --git a/utils/gssd/context_mit.c b/utils/gssd/context_mit.c index c0b494b..5eb900f 100644 --- a/utils/gssd/context_mit.c +++ b/utils/gssd/context_mit.c @@ -183,7 +183,7 @@ prepare_krb5_rfc1964_buffer(gss_krb5_lucid_context_v1_t *lctx, if (WRITE_BYTES(&p, end, lctx->endtime)) goto out_err; word_send_seq = lctx->send_seq; /* XXX send_seq is 64-bit */ if (WRITE_BYTES(&p, end, word_send_seq)) goto out_err; - if (write_buffer(&p, end, (gss_buffer_desc*)&krb5oid)) goto out_err; + if (write_oid(&p, end, &krb5oid)) goto out_err; printerr(2, "prepare_krb5_rfc1964_buffer: serializing keys with " "enctype %d and length %d\n", diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index c268497..68d645d 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -47,6 +47,7 @@ #include #include #include +#include #include #include diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c index 2f5e70e..e46715b 100644 --- a/utils/gssd/krb5_util.c +++ b/utils/gssd/krb5_util.c @@ -178,6 +178,7 @@ gssd_find_existing_krb5_ccache(uid_t uid, struct dirent **d) struct dirent *best_match_dir = NULL; struct stat best_match_stat, tmp_stat; + memset(&best_match_stat, 0, sizeof(best_match_stat)); *d = NULL; n = scandir(ccachedir, &namelist, select_krb5_ccache, 0); if (n < 0) {