diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
commit | 323d1abbc45a9dfeae3d39b5f8cc041dc4b73bd1 (patch) | |
tree | 64ea330e44da28fb9da88722be4cb4e200afe707 /games | |
parent | 31003a7e68970e14de72e158246cccd33cccc1e7 (diff) |
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'games')
-rw-r--r-- | games/adventure/wizard.c | 4 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/games/adventure/wizard.c b/games/adventure/wizard.c index b01c9112162..55690443991 100644 --- a/games/adventure/wizard.c +++ b/games/adventure/wizard.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wizard.c,v 1.14 2009/10/27 23:59:23 deraadt Exp $ */ +/* $OpenBSD: wizard.c,v 1.15 2013/08/22 04:43:41 guenther Exp $ */ /* $NetBSD: wizard.c,v 1.3 1995/04/24 12:21:41 cgd Exp $ */ /*- @@ -84,7 +84,7 @@ Start(void) if (delay >= latncy) return (FALSE); printf("This adventure was suspended a mere %d minute%s ago.", - delay, delay == 1 ? "" : "s"); + (int)delay, delay == 1 ? "" : "s"); if (delay <= latncy / 3) { mspeak(2); exit(0); diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index c859053d26e..8c2fd7b8c87 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strfile.c,v 1.17 2009/10/27 23:59:24 deraadt Exp $ */ +/* $OpenBSD: strfile.c,v 1.18 2013/08/22 04:43:41 guenther Exp $ */ /* $NetBSD: strfile.c,v 1.4 1995/04/24 12:23:09 cgd Exp $ */ /*- @@ -207,7 +207,7 @@ main(int ac, char *av[]) if (Tbl.str_numstr == 1) puts("There was 1 string"); else - printf("There were %ld strings\n", Tbl.str_numstr); + printf("There were %u strings\n", Tbl.str_numstr); printf("Longest string: %lu byte%s\n", (unsigned long) Tbl.str_longlen, Tbl.str_longlen == 1 ? "" : "s"); |