]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid clang -Wint-to-pointer-cast warning
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Jul 2014 22:45:49 +0000 (23:45 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 13 Jul 2014 23:38:29 +0000 (00:38 +0100)
* src/chroot.c: Explicitly cast int to pointer type.

src/chroot.c

index a623f883a977abd4a9159695870426f01d6be9fb..fff0b533d4768b119676810a7e814fabd4b3ea6d 100644 (file)
@@ -116,7 +116,8 @@ parse_additional_groups (char const *groups, GETGROUPS_T **pgids,
               if (g != NULL)
                 value = g->gr_gid;
             }
-          g = (struct group *)! NULL;  /* We've got a group from the number.  */
+          /* Flag that we've got a group from the number.  */
+          g = (struct group *) (intptr_t) ! NULL;
         }
       else
         {