]> err.no Git - linux-2.6/commitdiff
[PATCH] pid.h cleanup
authorAndrew Morton <akpm@osdl.org>
Tue, 3 Oct 2006 08:13:45 +0000 (01:13 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:03:40 +0000 (08:03 -0700)
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>
include/linux/pid.h

index 17b9e04d3586c38bcee851473d61428f761943b5..2c0007d172189390911779471f54db752e3dd50d 100644 (file)
@@ -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 */