From bbaddd455190c6e1fff13f67b55db4bc5018a05a Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 18 Jan 2009 00:24:29 +0000 Subject: fix -Wsign-compare issues --- hack/hack.lev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hack/hack.lev.c') diff --git a/hack/hack.lev.c b/hack/hack.lev.c index e65bfea6..87465433 100644 --- a/hack/hack.lev.c +++ b/hack/hack.lev.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.lev.c,v 1.7 2008/01/28 06:55:41 dholland Exp $ */ +/* $NetBSD: hack.lev.c,v 1.8 2009/01/18 00:34:03 lukem Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.lev.c,v 1.7 2008/01/28 06:55:41 dholland Exp $"); +__RCSID("$NetBSD: hack.lev.c,v 1.8 2009/01/18 00:34:03 lukem Exp $"); #endif /* not lint */ #include @@ -133,10 +133,10 @@ void bwrite(fd, loc, num) int fd; const void *loc; - unsigned num; + size_t num; { /* lint wants the 3rd arg of write to be an int; lint -p an unsigned */ - if (write(fd, loc, (int) num) != num) + if ((size_t)write(fd, loc, num) != num) panic("cannot write %u bytes to file #%d", num, fd); } -- cgit v1.2.3