mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Trivial cleanup in arch/i386/ptrace.c
@ 2001-05-03  8:53 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2001-05-03  8:53 UTC (permalink / raw)
  To: torvalds, linux-kernel

Hi!

Function get_stack_long should better return long, not int as it does now.

							      Pavel

Index: ptrace.c
===================================================================
RCS file: /home/cvs/Repository/linux/arch/i386/kernel/ptrace.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 ptrace.c
--- clean/linux/arch/i386/kernel/ptrace.c	2001/04/19 20:02:44	1.1.1.2
+++ linux/linux/arch/i386/kernel/ptrace.c	2001/05/03 07:51:51
@@ -50,7 +50,7 @@
 
 	stack = (unsigned char *)task->thread.esp0;
 	stack += offset;
-	return (*((int *)stack));
+	return (*((unsigned long *)stack));
 }
 
 /*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-03  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03  8:53 Trivial cleanup in arch/i386/ptrace.c Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®