]> Git Repo - binutils.git/commitdiff
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
authorDoug Evans <[email protected]>
Thu, 28 Jun 2012 17:13:18 +0000 (17:13 +0000)
committerDoug Evans <[email protected]>
Thu, 28 Jun 2012 17:13:18 +0000 (17:13 +0000)
gdb/ChangeLog
gdb/gdbtypes.c

index 4b20ff43628421277ce07cb060970d534d5588cf..44eaa19d90ce0ae6c8a3be8f5430b68bf105d915 100644 (file)
@@ -1,3 +1,7 @@
+2012-06-28  Doug Evans  <[email protected]>
+
+       * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
+
 2012-06-28  Jan Kratochvil  <[email protected]>
 
        * common/buffer.c: Include inttypes.h and stdint.h.
index e3db1ed5c5d3317ccc88a6e3527ff5db14a6910b..0eec874bc8739bc384638dd6b710d1023f4d7956 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;
This page took 0.044756 seconds and 4 git commands to generate.