From 42ccfed60b0e4938d1067384ed65bb4ff96973bf Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Thu, 12 Jan 2023 14:10:39 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9glage=20d'erreurs=20de=20frappe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/annexe/saeAnnexe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/annexe/saeAnnexe.c b/src/annexe/saeAnnexe.c index d2b0597..ebf7e6a 100644 --- a/src/annexe/saeAnnexe.c +++ b/src/annexe/saeAnnexe.c @@ -66,11 +66,11 @@ void saveIUT(VilleIUT** tiut, int tlogi){ perror("fopen"); exit(errno); } - MaillonDep* m; - fwrite(&tlogi,sizeof(int),1,f) + fwrite(&tlogi,sizeof(int),1,f); for(int i=0; iville,sizeof(char),31,f); } + MaillonDep* m; for(int i=0; ildept); fwrite(&nbIUTs,sizeof(int),1,f); @@ -109,7 +109,7 @@ int existeDep(MaillonDep* liste, char* dep){ int longueurListe(MaillonDep* liste){ MaillonDep* m=liste; int i=0; - while(m!=Null){ + while(m!=NULL){ m=m->suivant; i++; }