Fix elf64-ppc.c electric fence warning
[deliverable/binutils-gdb.git] / gdb / common / cleanups.c
index 8678114ba9d7ff7d99c450e418c631e7d4448053..e57e4ccf546b3721cf766fa4ea37e3ae97991a02 100644 (file)
@@ -1,6 +1,6 @@
 /* Cleanup routines for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2014 Free Software Foundation, Inc.
+   Copyright (C) 1986-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -79,15 +79,15 @@ static struct cleanup *
 make_my_cleanup2 (struct cleanup **pmy_chain, make_cleanup_ftype *function,
                  void *arg,  void (*free_arg) (void *))
 {
-  struct cleanup *new
+  struct cleanup *newobj
     = (struct cleanup *) xmalloc (sizeof (struct cleanup));
   struct cleanup *old_chain = *pmy_chain;
 
-  new->next = *pmy_chain;
-  new->function = function;
-  new->free_arg = free_arg;
-  new->arg = arg;
-  *pmy_chain = new;
+  newobj->next = *pmy_chain;
+  newobj->function = function;
+  newobj->free_arg = free_arg;
+  newobj->arg = arg;
+  *pmy_chain = newobj;
 
   gdb_assert (old_chain != NULL);
   return old_chain;
This page took 0.024358 seconds and 4 git commands to generate.