]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed some miscellaneous warnings in the new gssd code.
authorSteve Dickson <steved@redhat.com>
Fri, 16 Apr 2010 17:31:57 +0000 (13:31 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 16 Apr 2010 17:31:57 +0000 (13:31 -0400)
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/gssd_proc.c

index 50a27e418f2add809d2a63fdd29a3716c2fd53c2..a55418b22ac61bc75b36e0966b25e272fd60c54a 100644 (file)
@@ -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);
                }
        }