From df1a36fa2e6e17ee07291e15edac1f2379308b5f Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 28 Mar 2011 12:17:38 +0200 Subject: [PATCH] Meilleure indexation --- C_Language/TP_SYS/tp_sema/consommateur.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C_Language/TP_SYS/tp_sema/consommateur.c b/C_Language/TP_SYS/tp_sema/consommateur.c index 107b8b8..f31dcdb 100644 --- a/C_Language/TP_SYS/tp_sema/consommateur.c +++ b/C_Language/TP_SYS/tp_sema/consommateur.c @@ -34,7 +34,11 @@ key_t sem_key_tpa = MUTEX_TPA; int main( int argc, char **argv) { - if(argc < 2) { printf("Usage : %s nSHM \n", argv[0]); exit(EXIT_FAILURE); } + if(argc < 2) + { + printf("Usage : %s nSHM \n", argv[0]); + exit(EXIT_FAILURE); + } shm_key = (key_t) atoi(argv[1]); MEMP * memoireP;