1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

maint: avoid clang -Wint-to-pointer-cast warning

* src/chroot.c: Explicitly cast int to pointer type.
This commit is contained in:
Pádraig Brady
2014-07-13 23:45:49 +01:00
parent 2c003e6d57
commit 803ec30b95

View 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
{