Syntaktische korektur

This commit is contained in:
@Nurullah.Damla 2019-11-06 13:03:13 +01:00
parent 734d2e4f28
commit f69810898c
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@
int shared_memory_init(key_t key){ int shared_memory_init(key_t key){
memory_id = shmget(key, SHMMAXSIZE, IPC_CREAT | 0666); memory_id = shmget(key, SHMMAXSIZE, IPC_CREAT | 0666);
if(shmid == -1){ if(memory_id == -1){
key++; key++;
shmfnk(key); shared_memory_init(key);
return memory_id; return memory_id;
} }
return 0; return 0;