]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fix misc warning messages
authorKevin Coffman <kwc@citi.umich.edu>
Fri, 13 Oct 2006 19:35:43 +0000 (15:35 -0400)
committerNeil Brown <neilb@suse.de>
Mon, 16 Oct 2006 23:46:39 +0000 (09:46 +1000)
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Clean up a few warning messages.

utils/gssd/context_mit.c
utils/gssd/gssd_proc.c
utils/gssd/krb5_util.c

index c0b494b4a102a42cb7e492cb8d79efb9696a23ab..5eb900f3ba9cae94fadb84c38f5c7507eeaf282d 100644 (file)
@@ -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",
index c26849713d1e0ad41538b1d9157a8cac9371c4d3..68d645ddc90a4b848448726979e7a2c3c53ee8a9 100644 (file)
@@ -47,6 +47,7 @@
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
+#include <sys/fsuid.h>
 
 #include <stdio.h>
 #include <stdlib.h>
index 2f5e70ed2d78371e18b68ee744925866ad68126a..e46715baf32594924fe4f4242154b241ef6ceaab 100644 (file)
@@ -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) {