* Patch 2.4.21 use propper type for pid -IV
@ 2003-06-28 20:52 Walter Harms
0 siblings, 0 replies; only message in thread
From: Walter Harms @ 2003-06-28 20:52 UTC (permalink / raw)
To: linux-kernel
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)];
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-28 20:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-28 20:52 Patch 2.4.21 use propper type for pid -IV Walter Harms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).