Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2010 12:32:25 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r210232 - stable/8/sys/ddb
Message-ID:  <201007191232.o6JCWPTZ066219@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jul 19 12:32:24 2010
New Revision: 210232
URL: http://svn.freebsd.org/changeset/base/210232

Log:
  MFC r209934:
  Use _SIG_VALID().

Modified:
  stable/8/sys/ddb/db_command.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/ddb/db_command.c
==============================================================================
--- stable/8/sys/ddb/db_command.c	Mon Jul 19 12:16:41 2010	(r210231)
+++ stable/8/sys/ddb/db_command.c	Mon Jul 19 12:32:24 2010	(r210232)
@@ -633,7 +633,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
 	if (!db_expression(&pid))
 		DB_ERROR(("Missing process ID\n"));
 	db_skip_to_eol();
-	if (sig < 1 || sig > _SIG_MAXSIG)
+	if (!_SIG_VALID(sig))
 		DB_ERROR(("Signal number out of range\n"));
 
 	/*



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