Patch 2.4.21 use propper type for pid -IV

From: Walter Harms (Walter.Harms@Informatik.Uni-Oldenburg.DE)
Date: Sat Jun 28 2003 - 15:52:51 EST


Hi liste,
this is a small patch to fix functions that do not use the
correct type for pid. daniele bellucci and i have worked this
out.

walter

--- include/linux/sched.h.org 2003-06-27 22:45:18.000000000 +0200
+++ include/linux/sched.h 2003-06-28 22:05:28.000000000 +0200
@@ -74,7 +74,7 @@
 #define CT_TO_USECS(x) (((x) % HZ) * 1000000/HZ)
 
 extern int nr_running, nr_threads;
-extern int last_pid;
+extern pid_t last_pid;
 
 #include <linux/fs.h>
 #include <linux/time.h>
@@ -549,7 +549,7 @@
         *p->pidhash_pprev = p->pidhash_next;
 }
 
-static inline struct task_struct *find_task_by_pid(int pid)
+static inline struct task_struct *find_task_by_pid(pid_t pid)
 {
         struct task_struct *p, **htable = &pidhash[pid_hashfn(pid)];
 

-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:29 EST