linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Walter Harms" <Walter.Harms@Informatik.Uni-Oldenburg.DE>
To: linux-kernel@vger.kernel.org
Subject: Patch 2.4.21 use propper type for pid -IV
Date: Sat, 28 Jun 2003 22:52:51 +0200 (MEST)	[thread overview]
Message-ID: <E19WMgl-000Cqk-00@grossglockner.Informatik.Uni-Oldenburg.DE> (raw)


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)];
 
-- 

                 reply	other threads:[~2003-06-28 20:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E19WMgl-000Cqk-00@grossglockner.Informatik.Uni-Oldenburg.DE \
    --to=walter.harms@informatik.uni-oldenburg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).