summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-07-13 23:45:49 +0100
committerPádraig Brady <P@draigBrady.com>2014-07-14 00:38:29 +0100
commit803ec30b95c5ab9064ac7391ac04950aca123b50 (patch)
tree7f8b3d4ce01a1862c6fead9291bddd6bea2f032e
parent2c003e6d57afb01641494bbe44ce0471e2f0d106 (diff)
downloadcoreutils-803ec30b95c5ab9064ac7391ac04950aca123b50.tar.gz
coreutils-803ec30b95c5ab9064ac7391ac04950aca123b50.tar.bz2
coreutils-803ec30b95c5ab9064ac7391ac04950aca123b50.zip
maint: avoid clang -Wint-to-pointer-cast warning
* src/chroot.c: Explicitly cast int to pointer type.
-rw-r--r--src/chroot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chroot.c b/src/chroot.c
index a623f883a..fff0b533d 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
{