fix sign-compare issue

This commit is contained in:
lukem 2009-04-11 10:57:55 +00:00
parent 403ccaeac2
commit 94ec558cb9

View File

@ -1,4 +1,4 @@
/* $NetBSD: net.c,v 1.34 2009/01/31 06:22:46 isaki Exp $ */
/* $NetBSD: net.c,v 1.35 2009/04/11 10:57:55 lukem Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@ -120,8 +120,8 @@ sendrecv(struct iodesc *d,
tleft = 0;
continue;
}
if (cc < ssize)
panic("sendrecv: short write! (%zd < %zd)",
if ((size_t)cc < ssize)
panic("sendrecv: short write! (%zd < %zu)",
cc, ssize);
tlast = t;