coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: avoid clang -Wint-to-pointer-cast warning


From: Pádraig Brady
Subject: [PATCH] maint: avoid clang -Wint-to-pointer-cast warning
Date: Mon, 14 Jul 2014 00:57:01 +0100

* src/chroot.c: Explicitly cast int to pointer type.
---
 src/chroot.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/chroot.c b/src/chroot.c
index a623f88..fff0b53 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
         {
-- 
1.7.7.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]