summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:01:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-23 03:01:14 +0000
commit513871f2b2518f6347c3717a1758670a6bcfab87 (patch)
tree78eba3d449aaa141d8c4d95a41d8280ba188e5cf
parentf291c297a152f78ac417dbbce6730c0b69a1891f (diff)
uid_t and gid_t are unsigned
-rw-r--r--games/atc/log.c6
-rw-r--r--games/canfield/cfscores/cfscores.c6
-rw-r--r--games/hack/hack.main.c6
-rw-r--r--games/snake/snake.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/games/atc/log.c b/games/atc/log.c
index e28c29abb78..74a4b292d3f 100644
--- a/games/atc/log.c
+++ b/games/atc/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.9 2001/08/06 22:59:13 pjanzen Exp $ */
+/* $OpenBSD: log.c,v 1.10 2002/06/23 03:01:12 deraadt Exp $ */
/* $NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $ */
/*-
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: log.c,v 1.9 2001/08/06 22:59:13 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: log.c,v 1.10 2002/06/23 03:01:12 deraadt Exp $";
#endif
#endif /* not lint */
@@ -164,7 +164,7 @@ log_score(list_em)
if (!test_mode && !list_em) {
if ((pw = (struct passwd *) getpwuid(getuid())) == NULL) {
fprintf(stderr,
- "getpwuid failed for uid %d. Who are you?\n",
+ "getpwuid failed for uid %u. Who are you?\n",
getuid());
return (-1);
}
diff --git a/games/canfield/cfscores/cfscores.c b/games/canfield/cfscores/cfscores.c
index 3a274264540..54aa3c41820 100644
--- a/games/canfield/cfscores/cfscores.c
+++ b/games/canfield/cfscores/cfscores.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cfscores.c,v 1.8 2002/02/16 21:27:09 millert Exp $ */
+/* $OpenBSD: cfscores.c,v 1.9 2002/06/23 03:01:13 deraadt Exp $ */
/* $NetBSD: cfscores.c,v 1.3 1995/03/21 15:08:37 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: cfscores.c,v 1.8 2002/02/16 21:27:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: cfscores.c,v 1.9 2002/06/23 03:01:13 deraadt Exp $";
#endif
#endif /* not lint */
@@ -129,7 +129,7 @@ printuser(pw, printfail)
int i;
if (pw->pw_uid < 0) {
- printf("Bad uid %d\n", pw->pw_uid);
+ printf("Bad uid %u\n", pw->pw_uid);
return;
}
i = lseek(dbfd, pw->pw_uid * sizeof(struct betinfo), SEEK_SET);
diff --git a/games/hack/hack.main.c b/games/hack/hack.main.c
index 832f72723d2..6936bc3e40c 100644
--- a/games/hack/hack.main.c
+++ b/games/hack/hack.main.c
@@ -1,11 +1,11 @@
-/* $OpenBSD: hack.main.c,v 1.7 2001/01/28 23:41:44 niklas Exp $ */
+/* $OpenBSD: hack.main.c,v 1.8 2002/06/23 03:01:13 deraadt Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: hack.main.c,v 1.7 2001/01/28 23:41:44 niklas Exp $";
+static char rcsid[] = "$OpenBSD: hack.main.c,v 1.8 2002/06/23 03:01:13 deraadt Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -251,7 +251,7 @@ char *argv[];
}
#endif
setftty();
- (void) sprintf(SAVEF, "save/%d%s", getuid(), plname);
+ (void) sprintf(SAVEF, "save/%u%s", getuid(), plname);
regularize(SAVEF+5); /* avoid . or / in name */
if((fd = open(SAVEF, O_RDONLY)) >= 0 &&
(uptodate(fd) || unlink(SAVEF) == 666)) {
diff --git a/games/snake/snake.c b/games/snake/snake.c
index c4b9cd7da08..8f2bce01393 100644
--- a/games/snake/snake.c
+++ b/games/snake/snake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snake.c,v 1.5 2002/02/16 21:27:11 millert Exp $ */
+/* $OpenBSD: snake.c,v 1.6 2002/06/23 03:01:13 deraadt Exp $ */
/* $NetBSD: snake.c,v 1.8 1995/04/29 00:06:41 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: snake.c,v 1.5 2002/02/16 21:27:11 millert Exp $";
+static char rcsid[] = "$OpenBSD: snake.c,v 1.6 2002/06/23 03:01:13 deraadt Exp $";
#endif
#endif /* not lint */
@@ -549,7 +549,7 @@ post(iscore, flag)
*/
if ((uid = getuid()) < 0) {
if (flag)
- printf("\nNo saved scores for uid %d.\n", uid);
+ printf("\nNo saved scores for uid %u.\n", uid);
return(1);
}
if (rawscores == -1) {