From: Pádraig Brady Date: Sun, 13 Jul 2014 22:45:49 +0000 (+0100) Subject: maint: avoid clang -Wint-to-pointer-cast warning X-Git-Tag: v8.23~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803ec30b95c5ab9064ac7391ac04950aca123b50;p=thirdparty%2Fcoreutils.git maint: avoid clang -Wint-to-pointer-cast warning * src/chroot.c: Explicitly cast int to pointer type. --- diff --git a/src/chroot.c b/src/chroot.c index a623f883a9..fff0b533d4 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -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 {