summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:11:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:11:10 +0000
commit1448160e154647504f544fa6bf8817750424a662 (patch)
tree3ef913327cc788bc1c94e2ec888912d3edead169 /regress
parentb2e9efd3fb05b85dc11b3ea795320abfc2e86feb (diff)
more gid_t and uid_t are unsigned
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libc_r/pw/pw.c6
-rw-r--r--regress/lib/libpthread/pw/pw.c6
-rw-r--r--regress/sys/kern/sysvmsg/msgtest.c4
-rw-r--r--regress/sys/kern/sysvsem/semtest.c2
-rw-r--r--regress/sys/kern/sysvshm/shmtest.c2
5 files changed, 10 insertions, 10 deletions
diff --git a/regress/lib/libc_r/pw/pw.c b/regress/lib/libc_r/pw/pw.c
index fc7beec4963..bc9ced3b0ce 100644
--- a/regress/lib/libc_r/pw/pw.c
+++ b/regress/lib/libc_r/pw/pw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pw.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */
+/* $OpenBSD: pw.c,v 1.2 2002/06/23 03:11:09 deraadt Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -47,8 +47,8 @@ main()
char name[16];
CHECKn(pw = getpwuid(getuid()));
- printf("getpwuid(%d) => %p\n", getuid(), pw);
- printf(" name: %s\n uid: %d\n gid: %d\n"
+ printf("getpwuid(%u) => %p\n", getuid(), pw);
+ printf(" name: %s\n uid: %u\n gid: %u\n"
"class: %s\ngecos: %s\n dir: %s\nshell: %s\n",
pw->pw_name, pw->pw_uid, pw->pw_gid,
pw->pw_class, pw->pw_gecos, pw->pw_dir, pw->pw_shell);
diff --git a/regress/lib/libpthread/pw/pw.c b/regress/lib/libpthread/pw/pw.c
index fc7beec4963..bc9ced3b0ce 100644
--- a/regress/lib/libpthread/pw/pw.c
+++ b/regress/lib/libpthread/pw/pw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pw.c,v 1.1 2001/08/15 14:37:12 fgsch Exp $ */
+/* $OpenBSD: pw.c,v 1.2 2002/06/23 03:11:09 deraadt Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -47,8 +47,8 @@ main()
char name[16];
CHECKn(pw = getpwuid(getuid()));
- printf("getpwuid(%d) => %p\n", getuid(), pw);
- printf(" name: %s\n uid: %d\n gid: %d\n"
+ printf("getpwuid(%u) => %p\n", getuid(), pw);
+ printf(" name: %s\n uid: %u\n gid: %u\n"
"class: %s\ngecos: %s\n dir: %s\nshell: %s\n",
pw->pw_name, pw->pw_uid, pw->pw_gid,
pw->pw_class, pw->pw_gecos, pw->pw_dir, pw->pw_shell);
diff --git a/regress/sys/kern/sysvmsg/msgtest.c b/regress/sys/kern/sysvmsg/msgtest.c
index 0c402af4b9c..f9dc9965ee8 100644
--- a/regress/sys/kern/sysvmsg/msgtest.c
+++ b/regress/sys/kern/sysvmsg/msgtest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgtest.c,v 1.3 2002/06/11 06:16:36 jsyn Exp $ */
+/* $OpenBSD: msgtest.c,v 1.4 2002/06/23 03:11:09 deraadt Exp $ */
/* $NetBSD: msgtest.c,v 1.6 2001/02/19 22:44:41 cgd Exp $ */
/*-
@@ -289,7 +289,7 @@ print_msqid_ds(mp, mode)
uid_t uid = geteuid();
gid_t gid = getegid();
- printf("PERM: uid %d, gid %d, cuid %d, cgid %d, mode 0%o\n",
+ printf("PERM: uid %u, gid %u, cuid %u, cgid %u, mode 0%o\n",
mp->msg_perm.uid, mp->msg_perm.gid,
mp->msg_perm.cuid, mp->msg_perm.cgid,
mp->msg_perm.mode & 0777);
diff --git a/regress/sys/kern/sysvsem/semtest.c b/regress/sys/kern/sysvsem/semtest.c
index a2022eb56d1..f65a593a84d 100644
--- a/regress/sys/kern/sysvsem/semtest.c
+++ b/regress/sys/kern/sysvsem/semtest.c
@@ -298,7 +298,7 @@ print_semid_ds(sp, mode)
uid_t uid = geteuid();
gid_t gid = getegid();
- printf("PERM: uid %d, gid %d, cuid %d, cgid %d, mode 0%o\n",
+ printf("PERM: uid %u, gid %u, cuid %u, cgid %u, mode 0%o\n",
sp->sem_perm.uid, sp->sem_perm.gid,
sp->sem_perm.cuid, sp->sem_perm.cgid,
sp->sem_perm.mode & 0777);
diff --git a/regress/sys/kern/sysvshm/shmtest.c b/regress/sys/kern/sysvshm/shmtest.c
index a1b3cf91fc9..4246c81ea9c 100644
--- a/regress/sys/kern/sysvshm/shmtest.c
+++ b/regress/sys/kern/sysvshm/shmtest.c
@@ -263,7 +263,7 @@ print_shmid_ds(sp, mode)
uid_t uid = geteuid();
gid_t gid = getegid();
- printf("PERM: uid %d, gid %d, cuid %d, cgid %d, mode 0%o\n",
+ printf("PERM: uid %u, gid %u, cuid %u, cgid %u, mode 0%o\n",
sp->shm_perm.uid, sp->shm_perm.gid,
sp->shm_perm.cuid, sp->shm_perm.cgid,
sp->shm_perm.mode & 0777);