summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-22 09:03:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-22 09:03:58 +0000
commit148374a0785ad4881f0e493615a0fde2131c4f0c (patch)
tree4a1306c94013f72970a0cc8123768ae18e8f4594
parent523020257aeface8d5519a649391c722666fa457 (diff)
uid are unsigned outside of germany
-rw-r--r--bin/systrace/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/util.c b/bin/systrace/util.c
index 74866fc18ef..94cef3444fc 100644
--- a/bin/systrace/util.c
+++ b/bin/systrace/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.6 2002/06/18 01:54:31 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.7 2002/06/22 09:03:57 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -76,7 +76,7 @@ uid_to_name(uid_t uid)
struct passwd *pw;
if ((pw = getpwuid(uid)) == NULL)
- snprintf(buf, sizeof(buf), "uid %d", uid);
+ snprintf(buf, sizeof(buf), "uid %u", uid);
else
snprintf(buf, sizeof(buf), "%s", pw->pw_name);