]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/gssd_proc.c
Removed warnings from krb5_util.c
[nfs-utils.git] / utils / gssd / gssd_proc.c
index 50a27e418f2add809d2a63fdd29a3716c2fd53c2..3902b959240c2d237630a7b1e4f3d4016d9e4f75 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;
@@ -859,7 +859,7 @@ int create_auth_rpc_client(struct clnt_info *clp,
                 * Do this before creating rpc connection since we won't need
                 * rpc connection if it fails!
                 */
-               if (limit_krb5_enctypes(&sec, uid)) {
+               if (limit_krb5_enctypes(&sec)) {
                        printerr(1, "WARNING: Failed while limiting krb5 "
                                    "encryption types for user with uid %d\n",
                                 uid);
@@ -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);
                }
        }