From 3a792ff5e6d002d900491491e4051b67cad3ed12 Mon Sep 17 00:00:00 2001 From: ayin Date: Mon, 27 Aug 2007 20:50:38 +0000 Subject: [PATCH] Remove uses of rxvt_Str_match. --- src/xdefaults.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.' */ -- 2.34.1