diff options
author | Andrew Morton <akpm@osdl.org> | 2006-10-03 12:13:45 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 19:03:40 +0400 |
commit | 1d32849b14bc8792e6f35ab27dd990d74b16126c (patch) | |
tree | caba51ce9df60e42412119063e582023a534507e /include/linux/pid.h | |
parent | ad7a3bf30c27d902042bc85c3e54eb2082d633bd (diff) | |
download | linux-1d32849b14bc8792e6f35ab27dd990d74b16126c.tar.xz |
[PATCH] pid.h cleanup
Make the pid.h macros look less revolting in an 80-col window.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r-- | include/linux/pid.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index 17b9e04d3586..2c0007d17218 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h @@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid) } -#define do_each_task_pid(who, type, task) \ - do { \ - struct hlist_node *pos___; \ - struct pid *pid___ = find_pid(who); \ - if (pid___ != NULL) \ - hlist_for_each_entry_rcu((task), pos___, \ +#define do_each_task_pid(who, type, task) \ + do { \ + struct hlist_node *pos___; \ + struct pid *pid___ = find_pid(who); \ + if (pid___ != NULL) \ + hlist_for_each_entry_rcu((task), pos___, \ &pid___->tasks[type], pids[type].node) { -#define while_each_task_pid(who, type, task) \ - } \ +#define while_each_task_pid(who, type, task) \ + } \ } while (0) -#define do_each_pid_task(pid, type, task) \ - do { \ - struct hlist_node *pos___; \ - if (pid != NULL) \ - hlist_for_each_entry_rcu((task), pos___, \ +#define do_each_pid_task(pid, type, task) \ + do { \ + struct hlist_node *pos___; \ + if (pid != NULL) \ + hlist_for_each_entry_rcu((task), pos___, \ &pid->tasks[type], pids[type].node) { -#define while_each_pid_task(pid, type, task) \ - } \ +#define while_each_pid_task(pid, type, task) \ + } \ } while (0) #endif /* _LINUX_PID_H */ |