Skip to content

Commit 2eeed7e

Browse files
ReneNyffeneggertorvalds
authored andcommitted
include/linux/syscalls.h: use pid_t instead of int
In include/linux/syscalls.h, the four functions sys_kill, sys_tgkill, sys_tkill and sys_rt_sigqueueinfo are declared with "int pid" and "int tgid". However, in kernel/signal.c, the corresponding definitions use the more appropriate "pid_t" (which is a typedef'd int). This patch changes "int" to "pid_t" in the declarations of sys_kill, sys_tgkill, sys_tkill and sys_rt_sigqueueinfo in <linux/syscalls.h> in order to harmonize the function declarations with their respective definitions. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: René Nyffenegger <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Al Viro <[email protected]> Cc: "Steven Rostedt (Red Hat)" <[email protected]> Cc: Zach Brown <[email protected]> Cc: Milosz Tanski <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 0740aa5 commit 2eeed7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/syscalls.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese,
371371
size_t sigsetsize);
372372
asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig,
373373
siginfo_t __user *uinfo);
374-
asmlinkage long sys_kill(int pid, int sig);
375-
asmlinkage long sys_tgkill(int tgid, int pid, int sig);
376-
asmlinkage long sys_tkill(int pid, int sig);
377-
asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo);
374+
asmlinkage long sys_kill(pid_t pid, int sig);
375+
asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig);
376+
asmlinkage long sys_tkill(pid_t pid, int sig);
377+
asmlinkage long sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo);
378378
asmlinkage long sys_sgetmask(void);
379379
asmlinkage long sys_ssetmask(int newmask);
380380
asmlinkage long sys_signal(int sig, __sighandler_t handler);

0 commit comments

Comments
 (0)