gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 28 Aug 2010 08:38:25 +0000 (08:38 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 28 Aug 2010 08:38:25 +0000 (08:38 +0000)
Code cleanup.
* linux-nat.c (pull_pid_from_list): Rename status to statusp.
(my_waitpid): Likewise.

gdb/ChangeLog
gdb/linux-nat.c

index 8e25db542bb96983a35c94d6a3eb042d111ffd58..5d8184865331af58757a2ca08bf0cccbac85ac6a 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * linux-nat.c (pull_pid_from_list): Rename status to statusp.
+       (my_waitpid): Likewise.
+
 2010-08-27  Doug Evans  <dje@google.com>
 
        * dwarf2read.c (dw2_require_line_header): Read from .debug_types
index f697a9aad22c73b6142f1f8c83081b4b85e50f1b..791908b8f23cfe99fe3c475664721cb9c6c47395 100644 (file)
@@ -376,7 +376,7 @@ add_to_pid_list (struct simple_pid_list **listp, int pid, int status)
 }
 
 static int
-pull_pid_from_list (struct simple_pid_list **listp, int pid, int *status)
+pull_pid_from_list (struct simple_pid_list **listp, int pid, int *statusp)
 {
   struct simple_pid_list **p;
 
@@ -385,7 +385,7 @@ pull_pid_from_list (struct simple_pid_list **listp, int pid, int *status)
       {
        struct simple_pid_list *next = (*p)->next;
 
-       *status = (*p)->status;
+       *statusp = (*p)->status;
        xfree (*p);
        *p = next;
        return 1;
@@ -414,13 +414,13 @@ linux_tracefork_child (void)
 /* Wrapper function for waitpid which handles EINTR.  */
 
 static int
-my_waitpid (int pid, int *status, int flags)
+my_waitpid (int pid, int *statusp, int flags)
 {
   int ret;
 
   do
     {
-      ret = waitpid (pid, status, flags);
+      ret = waitpid (pid, statusp, flags);
     }
   while (ret == -1 && errno == EINTR);
 
This page took 0.030608 seconds and 4 git commands to generate.