* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
authorDoug Evans <dje@google.com>
Thu, 28 Jun 2012 17:13:18 +0000 (17:13 +0000)
committerDoug Evans <dje@google.com>
Thu, 28 Jun 2012 17:13:18 +0000 (17:13 +0000)
gdb/ChangeLog
gdb/gdbtypes.c

index 4b20ff4..44eaa19 100644 (file)
@@ -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.
index e3db1ed..0eec874 100644 (file)
@@ -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;