lkml.org 
[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectTrivial cleanup in arch/i386/ptrace.c
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/
\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.026 / U:0.992 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site