From 37c9eaae295ba5fa4322a6cd5d904719558f32f7 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 3 May 2004 21:02:02 +0000 Subject: Prefer signed type over unsigned to be able to assert negative reference count. --- sys/geom/gate/g_gate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/geom/gate') diff --git a/sys/geom/gate/g_gate.h b/sys/geom/gate/g_gate.h index a25332f456e5..929826abd10c 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) */ -- cgit v1.3