aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
commit7318d07f8950d3469d76537ce1d96f863085ba7c (patch)
tree361d3b09b28e6847784781c70323af5dab2745c3 /thread.c
parent616665a32d0e4eb368c6346168e91cfeda42583f (diff)
downloadlcd4linux-7318d07f8950d3469d76537ce1d96f863085ba7c.tar.gz
various compiler warnings fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index c49f297..ddeea82 100644
--- a/thread.c
+++ b/thread.c
@@ -165,9 +165,7 @@ void shm_destroy(const int shmid, const void *buffer)
int thread_create(const char *name, void (*thread) (void *data), void *data)
{
- pid_t pid, ppid;
-
- ppid = getpid();
+ pid_t pid;
switch (pid = fork()) {
case -1: