From 659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 28 Jun 2012 17:13:18 +0000 Subject: [PATCH] * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type". --- gdb/ChangeLog | 4 ++++ gdb/gdbtypes.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b20ff43628..44eaa19d90c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-06-28 Doug Evans + + * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type". + 2012-06-28 Jan Kratochvil * common/buffer.c: Include inttypes.h and stdint.h. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index e3db1ed5c5d..0eec874bc87 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1140,15 +1140,15 @@ lookup_typename (const struct language_defn *language, const struct block *block, int noerr) { struct symbol *sym; - struct type *tmp; + struct type *type; sym = lookup_symbol (name, block, VAR_DOMAIN, 0); if (sym != NULL && SYMBOL_CLASS (sym) == LOC_TYPEDEF) return SYMBOL_TYPE (sym); - tmp = language_lookup_primitive_type_by_name (language, gdbarch, name); - if (tmp) - return tmp; + type = language_lookup_primitive_type_by_name (language, gdbarch, name); + if (type) + return type; if (noerr) return NULL; -- 2.30.2