'unit' can be negative, so use signed type for it.

Found by:	Coverity Prevent
CID:		3731
MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-06-14 21:58:55 +00:00
parent 15725379d0
commit 2aa15ffdab

View File

@ -210,7 +210,7 @@ g_gate_start(struct bio *bp)
}
static struct g_gate_softc *
g_gate_hold(u_int unit, const char *name)
g_gate_hold(int unit, const char *name)
{
struct g_gate_softc *sc = NULL;