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++; }