[syslinux:lwip] core thread: Make the code a little clearer.
syslinux-bot for Eric W. Biederman
ebiederm at xmission.com
Fri Apr 22 20:05:34 PDT 2011
Commit-ID: ff8ed8a79d682c8ce35aa62f208a8a730031c3e6
Gitweb: http://syslinux.zytor.com/commit/ff8ed8a79d682c8ce35aa62f208a8a730031c3e6
Author: Eric W. Biederman <ebiederm at xmission.com>
AuthorDate: Sat, 9 Apr 2011 02:23:44 -0700
Committer: Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:40:52 -0700
core thread: Make the code a little clearer.
Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
core/thread/start_thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/thread/start_thread.c b/core/thread/start_thread.c
index 5486e56..52cc7df 100644
--- a/core/thread/start_thread.c
+++ b/core/thread/start_thread.c
@@ -28,7 +28,7 @@ struct thread *start_thread(const char *name, size_t stack_size, int prio,
return NULL;
t = (struct thread *)stack;
- stack = (char *)(t + 1); /* After the thread structure */
+ stack += sizeof(struct thread);
memset(t, 0, sizeof *t);
More information about the Syslinux-commits
mailing list