Trivial cleanup in arch/i386/ptrace.c

Pavel Machek (pavel@suse.cz)
Thu, 3 May 2001 10:53:38 +0200


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/