summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-06-28 17:13:18 +0000
committerDoug Evans <dje@google.com>2012-06-28 17:13:18 +0000
commit815ba3977f58dfe694d8efd49c8a2e2721ef1af2 (patch)
tree611ad87efb26239c9d0ff907fbdc317a66cd93da /gdb/gdbtypes.c
parentf4944821d0d5bf9f3f93d5771a9675a62e3e5dd9 (diff)
downloadgdb-815ba3977f58dfe694d8efd49c8a2e2721ef1af2.tar.gz
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c8
1 files changed, 4 insertions, 4 deletions
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;