Skip to contentSkip to conversation

Trivial cleanup in arch/i386/ptrace.c

PATCH Pavel Machek 1 participant 1 message May 3, 2001

lore
Share & tools
lore
#0 lore raw

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

linux/arch/i386/kernel/ptrace.c +1 -1
diff -u -r1.1.1.2 ptrace.c
@@ -50,7 +50,7 @@
 
 	stack = (unsigned char *)task->thread.esp0;
 	stack += offset;
-	return (*((int *)stack));
+	return (*((unsigned long *)stack));
 }
 
 /*