diff options
author | pjd <pjd@FreeBSD.org> | 2004-05-03 21:02:02 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-05-03 21:02:02 +0000 |
commit | 33d1430a625ac0835e0aa569034433f92ad5c27c (patch) | |
tree | 33d0b4c364441621b556bf5c63dffd61e276587e /sys/geom/gate | |
parent | 16bb0e59b9636ffa467f0e5d0bb31284e17bd45c (diff) | |
download | FreeBSD-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.h | 2 |
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) */ |