From: Steve Dickson Date: Fri, 16 Apr 2010 17:31:57 +0000 (-0400) Subject: Removed some miscellaneous warnings in the new gssd code. X-Git-Tag: nfs-utils-1-2-3-rc2~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c4b2281c6c748b768de7a49af89660c9c1a68b11;p=nfs-utils.git Removed some miscellaneous warnings in the new gssd code. Signed-off-by: Steve Dickson --- diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index 50a27e4..a55418b 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -655,7 +655,7 @@ parse_enctypes(char *enctypes) } num_krb5_enctypes = n; - if (cached_types = malloc(strlen(enctypes)+1)) + if ((cached_types = malloc(strlen(enctypes)+1))) strcpy(cached_types, enctypes); return 0; @@ -1189,7 +1189,7 @@ handle_gssd_upcall(struct clnt_info *clp) { uid_t uid; char *lbuf = NULL; - int lbuflen = 0, code; + int lbuflen = 0; char *p; char *mech = NULL; char *target = NULL; @@ -1251,7 +1251,7 @@ handle_gssd_upcall(struct clnt_info *clp) } if (parse_enctypes(enctypes) != 0) { printerr(0, "WARNING: handle_gssd_upcall: " - "parsing encryption types failed: errno %d\n", code); + "parsing encryption types failed: errno %d\n", errno); } }