changeset 74468:7714fd14ce36

(parse_signal): Use xstricmp instead of strcasecmp. (Fsignal_process): Don't use strncasecmp.
author Kim F. Storm <storm@cua.dk>
date Thu, 07 Dec 2006 11:12:21 +0000
parents dc58e8eb88ca
children fe5bf6f0667f
files src/process.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Thu Dec 07 09:07:06 2006 +0000
+++ b/src/process.c	Thu Dec 07 11:12:21 2006 +0000
@@ -6148,7 +6148,7 @@
  got_it:
 
 #define parse_signal(NAME, VALUE)		\
-  else if (!strcasecmp (name, NAME))		\
+  else if (!xstricmp (name, NAME))		\
     XSETINT (sigcode, VALUE)
 
   if (INTEGERP (sigcode))
@@ -6160,7 +6160,7 @@
       CHECK_SYMBOL (sigcode);
       name = SDATA (SYMBOL_NAME (sigcode));
 
-      if (!strncasecmp(name, "sig", 3))
+      if (!strncmp(name, "SIG", 3) || !strncmp(name, "sig", 3))
 	name += 3;
 
       if (0)