Indentation + ajout d'un saut de ligne

master
Philippe Pittoli 2011-03-28 22:17:07 +02:00
parent f8c0559289
commit f98e582ea7
1 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,11 @@ int main( int argc, char **argv)
shmid = shmget(shm_key, sizeof(MEMP), 0766 | IPC_CREAT); shmid = shmget(shm_key, sizeof(MEMP), 0766 | IPC_CREAT);
if (shmid == -1) { perror("shmget"); exit(EXIT_FAILURE); } if (shmid == -1)
{
perror("shmget");
exit(EXIT_FAILURE);
}
if((memoireP = (MEMP *) shmat(shmid, 0 , 0766)) ==(void *) -1) if((memoireP = (MEMP *) shmat(shmid, 0 , 0766)) ==(void *) -1)
{ {
@ -66,7 +70,7 @@ int main( int argc, char **argv)
if(memoireP->tpa[i] != -1) if(memoireP->tpa[i] != -1)
{ {
V(mutex_tpa); V(mutex_tpa);
printf("Plus de place dispo dans les producteurs"); printf("Plus de place dispo dans les producteurs\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
memoireP->tpa[i] = 0; memoireP->tpa[i] = 0;