From 507aaf965ef150e1a53b2f7093fc8a0a809cb1a1 Mon Sep 17 00:00:00 2001 From: tnn Date: Sun, 18 Jan 2009 13:30:33 +0000 Subject: use %zu to print size_t --- hack/hack.lev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hack') 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 #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 @@ -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 -- cgit v1.2.3