Remove uses of rxvt_Str_match.
authorayin <ayin>
Mon, 27 Aug 2007 20:50:38 +0000 (20:50 +0000)
committerayin <ayin>
Mon, 27 Aug 2007 20:50:38 +0000 (20:50 +0000)
src/xdefaults.C

index 3dcf10c8b7d921832cbc97abbdddc5bdb627fef0..03746a95300dcb7a9bf346c9226e430d6328e171 100644 (file)
@@ -568,8 +568,7 @@ rxvt_term::get_options (int argc, const char *const *argv)
         }
       else
 #ifdef KEYSYM_RESOURCE
-        /* if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1)) */
-        if (rxvt_Str_match (opt, "keysym."))
+        if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1))
           {
             const char *str = argv[++i];
 
@@ -675,7 +674,8 @@ rxvt_term::parse_keysym (const char *str, const char *arg)
 
   if (arg == NULL)
     {
-      if ((n = rxvt_Str_match (str, "keysym.")) == 0)
+      n = sizeof ("keysym.") - 1;
+      if (strncmp (str, "keysym.", n))
         return 0;
 
       str += n;                /* skip `keysym.' */