summaryrefslogtreecommitdiffstats
path: root/util.cxx
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-11-26 10:03:58 +0800
committerWenji Huang <wenji.huang@oracle.com>2009-11-26 10:03:58 +0800
commitf429df668ac09575b0db710aa54cb2117dc542c3 (patch)
tree1404572fc5736bbcc47657560b25c7e1b703bc3e /util.cxx
parentdb0a43c3f6e50f476213a7f6e6b50ce0ba008d9f (diff)
downloadsystemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.tar.gz
systemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.tar.xz
systemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.zip
Fix compilation warning of passing NULL to int parameter
* util.cxx (in_group_id): Replace NULL with 0.
Diffstat (limited to 'util.cxx')
-rw-r--r--util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.cxx b/util.cxx
index da8fc944..bffeb04e 100644
--- a/util.cxx
+++ b/util.cxx
@@ -200,7 +200,7 @@ in_group_id (gid_t target_gid)
return true;
// Get the list of the user's groups.
- int ngids = getgroups(NULL, 0); // Returns the number to allocate.
+ int ngids = getgroups(0, 0); // Returns the number to allocate.
if (ngids > 0) {
gid_t gidlist[ngids];
ngids = getgroups(ngids, gidlist);