Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 21:58:55 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209187 - head/sys/geom/gate
Message-ID:  <201006142158.o5ELwtb1082784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006142158.o5ELwtb1082784>