summaryrefslogtreecommitdiffstats
path: root/sys/geom/gate
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-05-03 21:02:02 +0000
committerpjd <pjd@FreeBSD.org>2004-05-03 21:02:02 +0000
commit33d1430a625ac0835e0aa569034433f92ad5c27c (patch)
tree33d0b4c364441621b556bf5c63dffd61e276587e /sys/geom/gate
parent16bb0e59b9636ffa467f0e5d0bb31284e17bd45c (diff)
downloadFreeBSD-src-33d1430a625ac0835e0aa569034433f92ad5c27c.zip
FreeBSD-src-33d1430a625ac0835e0aa569034433f92ad5c27c.tar.gz
Prefer signed type over unsigned to be able to assert negative
reference count.
Diffstat (limited to 'sys/geom/gate')
-rw-r--r--sys/geom/gate/g_gate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.h b/sys/geom/gate/g_gate.h
index a25332f..929826a 100644
--- a/sys/geom/gate/g_gate.h
+++ b/sys/geom/gate/g_gate.h
@@ -67,7 +67,7 @@
*/
struct g_gate_softc {
int sc_unit; /* P: (read-only) */
- uint16_t sc_ref; /* P: g_gate_list_mtx */
+ int16_t sc_ref; /* P: g_gate_list_mtx */
struct g_provider *sc_provider; /* P: (read-only) */
uint32_t sc_flags; /* P: (read-only) */
OpenPOWER on IntegriCloud