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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user