summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 19:37:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 19:37:44 +0000
commita3cfa9f031721f91692c4c5708ebf0f6fd946b1c (patch)
treec5a5fcd4adc0fad0486531436e6e61af203e8d01
parentcreated. Split getpid() from types.c to allow it to be overridden by (diff)
downloadrtems-a3cfa9f031721f91692c4c5708ebf0f6fd946b1c.tar.bz2
initialized a stack variable to avoid a warning.
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c2
-rw-r--r--cpukit/score/cpu/unix/cpu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index 6c0f271c5e..8b9c3154fb 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/score/cpu/unix/cpu.c
@@ -817,7 +817,7 @@ void _CPU_SHM_Init(
char *shm_addr;
key_t shm_key;
key_t sem_key;
- int status;
+ int status = 0;
int shm_size;
if (getenv("RTEMS_SHM_KEY"))
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 6c0f271c5e..8b9c3154fb 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/score/cpu/unix/cpu.c
@@ -817,7 +817,7 @@ void _CPU_SHM_Init(
char *shm_addr;
key_t shm_key;
key_t sem_key;
- int status;
+ int status = 0;
int shm_size;
if (getenv("RTEMS_SHM_KEY"))