From: Pavel Machek <pavel@suse.cz>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Trivial cleanup in arch/i386/ptrace.c
Date: Thu, 3 May 2001 10:53:38 +0200 [thread overview]
Message-ID: <20010503105338.A30263@monk.suse.cz> (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
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));
}
/*
reply other threads:[~2001-05-03 8:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010503105338.A30263@monk.suse.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®