diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-22 18:23:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-22 18:23:03 +0000 |
commit | d9284ecb5e436d7ce9885574b0abafa1730367e3 (patch) | |
tree | b3e23a988b325d958526857af72ef4e0dc00ef17 /bin/systrace/policy.c | |
parent | b3124cd9744171356d47aa8ec157af38725d8b9e (diff) |
gid is u_int
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r-- | bin/systrace/policy.c | 6 |
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); } |