lkml.org 
[lkml]   [2003]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectPatch 2.4.21 use propper type for pid -IV
Date
From

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/
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.037 / U:2.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site