From: ayin Date: Mon, 27 Aug 2007 20:50:38 +0000 (+0000) Subject: Remove uses of rxvt_Str_match. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=3a792ff5e6d002d900491491e4051b67cad3ed12;p=dana%2Furxvt.git Remove uses of rxvt_Str_match. --- diff --git a/src/xdefaults.C b/src/xdefaults.C index 3dcf10c8..03746a95 100644 --- a/src/xdefaults.C +++ b/src/xdefaults.C @@ -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.' */