Author: pjd
Date: Mon Jun 14 21:58:55 2010
New Revision: 209187
URL: http://svn.freebsd.org/changeset/base/209187

Log:
  'unit' can be negative, so use signed type for it.
  
  Found by:     Coverity Prevent
  CID:          3731
  MFC after:    3 days

Modified:
  head/sys/geom/gate/g_gate.c

Modified: head/sys/geom/gate/g_gate.c
==============================================================================
--- head/sys/geom/gate/g_gate.c Mon Jun 14 21:56:24 2010        (r209186)
+++ head/sys/geom/gate/g_gate.c Mon Jun 14 21:58:55 2010        (r209187)
@@ -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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to