From bf896cb059775f7c8a68e13a733191755fdc1a85 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 6 Nov 2003 22:54:02 +0000 Subject: 2003-11-06 Andrew Cagney * valops.c (destructor_name_p): Replace STREQN with strncmp. * top.c (command_line_input): Ditto. * objc-exp.y (yylex): Ditto. * minsyms.c (prim_record_minimal_symbol_and_info): Ditto. * jv-exp.y (yylex): Ditto. * f-exp.y (yylex): Ditto. * event-top.c (command_line_handler): Ditto. * environ.c (get_in_environ): Ditto. (set_in_environ): Ditto. * dwarfread.c (handle_producer): Ditto. * dbxread.c (process_one_symbol): Ditto. * c-typeprint.c (c_type_print_base): Ditto. * c-exp.y (yylex): Ditto. 2003-11-06 Andrew Cagney * mi-cmd-var.c (mi_cmd_var_set_format): Replace STREQN with strncmp. --- gdb/objc-exp.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/objc-exp.y') diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y index d47fd68..f6123e6 100644 --- a/gdb/objc-exp.y +++ b/gdb/objc-exp.y @@ -1592,7 +1592,7 @@ yylex () if (STREQN (tokstart, "unsigned", 8)) return UNSIGNED; if (current_language->la_language == language_cplus - && STREQN (tokstart, "template", 8)) + && strncmp (tokstart, "template", 8) == 0) return TEMPLATE; if (STREQN (tokstart, "volatile", 8)) return VOLATILE_KEYWORD; @@ -1609,7 +1609,7 @@ yylex () break; case 5: if ((current_language->la_language == language_cplus) - && STREQN (tokstart, "class", 5)) + && strncmp (tokstart, "class", 5) == 0) return CLASS; if (STREQN (tokstart, "union", 5)) return UNION; -- cgit v1.1