Trivial cleanup in arch/i386/ptrace.c

From: Pavel Machek (pavel@suse.cz)
Date: Thu May 03 2001 - 03:53:38 EST


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));
 }
 
 /*
-
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/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:15 EST