summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-06-14 21:58:55 +0000
committerpjd <pjd@FreeBSD.org>2010-06-14 21:58:55 +0000
commit6016b9e7a656aa5aa26773e6eddd58748027bc6c (patch)
tree8356424c934cd0632a7dc42feece20c40fd34d81 /sys/geom
parent9910a8f3bf49a3007af752ea526d685fe9941bc1 (diff)
downloadFreeBSD-src-6016b9e7a656aa5aa26773e6eddd58748027bc6c.zip
FreeBSD-src-6016b9e7a656aa5aa26773e6eddd58748027bc6c.tar.gz
'unit' can be negative, so use signed type for it.
Found by: Coverity Prevent CID: 3731 MFC after: 3 days
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/gate/g_gate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index 31e9c80..e035f97 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -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;
OpenPOWER on IntegriCloud