diff options
author | pjd <pjd@FreeBSD.org> | 2010-06-14 21:58:55 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-06-14 21:58:55 +0000 |
commit | 6016b9e7a656aa5aa26773e6eddd58748027bc6c (patch) | |
tree | 8356424c934cd0632a7dc42feece20c40fd34d81 /sys/geom/gate | |
parent | 9910a8f3bf49a3007af752ea526d685fe9941bc1 (diff) | |
download | FreeBSD-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/gate')
-rw-r--r-- | sys/geom/gate/g_gate.c | 2 |
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; |