Fix typo in gdb.python/py-objfile.exp
[deliverable/binutils-gdb.git] / gdb / continuations.c
index 95e934e59e60382ef36de1c2a821369e7c837dd8..e753dc1769a51eb3f8e4298e9c3b6e8536970e4d 100644 (file)
@@ -1,6 +1,6 @@
 /* Continuations for GDB, the GNU debugger.
 
-   Copyright (C) 1986, 1988-2012 Free Software Foundation, Inc.
+   Copyright (C) 1986-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -39,13 +39,13 @@ make_continuation (struct continuation **pmy_chain,
                   continuation_ftype *function,
                   void *arg,  void (*free_arg) (void *))
 {
-  struct continuation *new = XNEW (struct continuation);
+  struct continuation *newobj = XNEW (struct continuation);
 
-  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;
 }
 
 static void
@@ -100,8 +100,6 @@ discard_my_continuations_1 (struct continuation **pmy_chain)
 static void
 discard_my_continuations (struct continuation **list)
 {
-  struct continuation *continuation_ptr = *list;
-
   discard_my_continuations_1 (list);
   *list = NULL;
 }
This page took 0.025337 seconds and 4 git commands to generate.