diff options
author | Doug Evans <dje@google.com> | 2012-06-28 17:13:18 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-06-28 17:13:18 +0000 |
commit | 659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2 (patch) | |
tree | 5ad1af58f1f55d8f5d712b28432ca0fd932b806d | |
parent | da2d6d3da4803d5b9cea064d11e3e4b5361d5236 (diff) | |
download | gdb-659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2.zip gdb-659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2.tar.gz gdb-659c9f3a0f9f3ee0ece8108767e22cb5fcbba7a2.tar.bz2 |
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b20ff4..44eaa19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-06-28 Doug Evans <dje@google.com> + + * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type". + 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> * common/buffer.c: Include inttypes.h and stdint.h. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index e3db1ed..0eec874 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; |