From b76b2015be53c8abe86b5ce51380224718959d90 Mon Sep 17 00:00:00 2001 From: Christian Muck Date: Fri, 13 Jan 2012 12:18:26 +0100 Subject: [GSW-135] Fixed compile warnings --- src/shared/dlt_shm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/shared/dlt_shm.c') diff --git a/src/shared/dlt_shm.c b/src/shared/dlt_shm.c index f330864..c22dd13 100644 --- a/src/shared/dlt_shm.c +++ b/src/shared/dlt_shm.c @@ -109,7 +109,6 @@ void dlt_shm_pv(int id,int operation) int dlt_shm_init_server(DltShm *buf,int key,int size) { struct shmid_ds shm_buf; - char str[256]; unsigned char *ptr; // Init parameters @@ -130,7 +129,7 @@ int dlt_shm_init_server(DltShm *buf,int key,int size) { } // Now we attach the segment to our data space. - if ((ptr = shmat(buf->shmid, NULL, 0)) == (char *) -1) { + if ((ptr = shmat(buf->shmid, NULL, 0)) == (unsigned char *) -1) { dlt_log(LOG_ERR,"SHM: shmat"); return -1; /* ERROR */ } @@ -175,7 +174,7 @@ int dlt_shm_init_client(DltShm *buf,int key) { } // Now we attach the segment to our data space. - if ((ptr = shmat(buf->shmid, NULL, 0)) == (char *) -1) { + if ((ptr = shmat(buf->shmid, NULL, 0)) == (unsigned char *) -1) { dlt_log(LOG_ERR,"shmat"); return -1; /* ERROR */ } -- cgit v1.2.1