summaryrefslogtreecommitdiff
path: root/bin/systrace/policy.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-22 18:23:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-22 18:23:03 +0000
commitd9284ecb5e436d7ce9885574b0abafa1730367e3 (patch)
treeb3e23a988b325d958526857af72ef4e0dc00ef17 /bin/systrace/policy.c
parentb3124cd9744171356d47aa8ec157af38725d8b9e (diff)
gid is u_int
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r--bin/systrace/policy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/systrace/policy.c b/bin/systrace/policy.c
index 348a0c5a41d..88a9676b9f9 100644
--- a/bin/systrace/policy.c
+++ b/bin/systrace/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.10 2002/06/19 16:31:07 provos Exp $ */
+/* $OpenBSD: policy.c,v 1.11 2002/06/22 18:23:02 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -137,8 +137,8 @@ systrace_initpolicy(char *file)
if ((groupnames[i] = strdup(gr->gr_name)) == NULL)
err(1, "strdup(%s)", gr->gr_name);
} else {
- snprintf(gidbuf, sizeof(gidbuf), "%lu",
- (u_long)groups[i]);
+ snprintf(gidbuf, sizeof(gidbuf), "%u",
+ groups[i]);
if ((groupnames[i] = strdup(gidbuf)) == NULL)
err(1, "strdup(%s)", gidbuf);
}