diff options
author | tnn <tnn@NetBSD.org> | 2009-01-18 13:30:33 +0000 |
---|---|---|
committer | tnn <tnn@NetBSD.org> | 2009-01-18 13:30:33 +0000 |
commit | 507aaf965ef150e1a53b2f7093fc8a0a809cb1a1 (patch) | |
tree | 2b732fac8a600d58b8ed4bb17f413c09af9a07cd /hack/hack.lev.c | |
parent | bbaddd455190c6e1fff13f67b55db4bc5018a05a (diff) | |
download | bsdgames-darwin-507aaf965ef150e1a53b2f7093fc8a0a809cb1a1.tar.gz bsdgames-darwin-507aaf965ef150e1a53b2f7093fc8a0a809cb1a1.tar.zst bsdgames-darwin-507aaf965ef150e1a53b2f7093fc8a0a809cb1a1.zip |
use %zu to print size_t
Diffstat (limited to 'hack/hack.lev.c')
-rw-r--r-- | hack/hack.lev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.lev.c b/hack/hack.lev.c index 87465433..602bde5c 100644 --- a/hack/hack.lev.c +++ b/hack/hack.lev.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.lev.c,v 1.8 2009/01/18 00:34:03 lukem Exp $ */ +/* $NetBSD: hack.lev.c,v 1.9 2009/01/18 13:30:33 tnn Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.lev.c,v 1.8 2009/01/18 00:34:03 lukem Exp $"); +__RCSID("$NetBSD: hack.lev.c,v 1.9 2009/01/18 13:30:33 tnn Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -137,7 +137,7 @@ bwrite(fd, loc, num) { /* lint wants the 3rd arg of write to be an int; lint -p an unsigned */ if ((size_t)write(fd, loc, num) != num) - panic("cannot write %u bytes to file #%d", num, fd); + panic("cannot write %zu bytes to file #%d", num, fd); } void |