diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-28 08:38:25 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-28 08:38:25 +0000 |
commit | 46a9699269daf00ad6665c630c841ba160c27326 (patch) | |
tree | 10db542e38455d63744f25120d8485b40de302f3 /gdb/linux-nat.c | |
parent | a464928644b6811cfa7a7de2652d3eb00fe75f6d (diff) | |
download | gdb-46a9699269daf00ad6665c630c841ba160c27326.zip gdb-46a9699269daf00ad6665c630c841ba160c27326.tar.gz gdb-46a9699269daf00ad6665c630c841ba160c27326.tar.bz2 |
gdb/
Code cleanup.
* linux-nat.c (pull_pid_from_list): Rename status to statusp.
(my_waitpid): Likewise.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index f697a9a..791908b 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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); |