diff --git a/header/sae.h b/header/sae.h index 6698d13..d5c6130 100644 --- a/header/sae.h +++ b/header/sae.h @@ -69,8 +69,8 @@ typedef struct maillonDept //Mise a jour du maillon pour correspondre à la partie 3 : int moyMin; int admisMax; - ListeCandidats ladmis; - ListeCandidats lattente; + ListeCandidats lAdmis; + ListeCandidats lAttente; struct maillonDept *suiv; }MaillonDept, *ListeDept; @@ -79,7 +79,7 @@ typedef struct maillonDept typedef struct { char nom[30]; - ListeDept ldept; + ListeDept lDept; }VilleIut; /* diff --git a/source/.nfs000000000666118700000019 b/source/.nfs000000000666118700000019 deleted file mode 100755 index a9acda4..0000000 Binary files a/source/.nfs000000000666118700000019 and /dev/null differ diff --git a/source/sae.c b/source/sae.c index 805391f..e7c51fe 100644 --- a/source/sae.c +++ b/source/sae.c @@ -259,7 +259,7 @@ int modifiePlacesDept(VilleIut *villeIut, int nbVilles, char *ville, char *nomDe if (strcmp(villeIut[i].nom, ville) == 0) { // Ville trouvée, recherche du département - MaillonDept *dept = villeIut[i].ldept; + MaillonDept *dept = villeIut[i].lDept; while (dept != NULL && strcmp(dept->nomDept, nomDept) != 0) { dept = dept->suiv; @@ -295,7 +295,7 @@ void afficheIUTDept(VilleIut *villeIut, int nbVilles, char *nomDept) for (i = 0; i < nbVilles; i++) { // Parcours de la liste chaînée de départements de la ville - MaillonDept *dept = villeIut[i].ldept; + MaillonDept *dept = villeIut[i].lDept; while (dept != NULL) { if (strcmp(dept->nomDept, nomDept) == 0) diff --git a/source/test.c b/source/test.c index 0fefc61..6e7443a 100644 --- a/source/test.c +++ b/source/test.c @@ -9,10 +9,10 @@ void testJean(void) { VilleIut **tIut = (VilleIut **)malloc(sizeof(VilleIut *)*5); strcpy(tIut[0]->nom, "John"); - strcpy(tIut[0]->ldept->nomDept, "Info"); - strcpy(tIut[0]->ldept->resp, "YAnis"); - tIut[0]->ldept->nbP = 12; - tIut[0]->ldept->suiv = NULL; + strcpy(tIut[0]->lDept->nomDept, "Info"); + strcpy(tIut[0]->lDept->resp, "Yanis"); + tIut[0]->lDept->nbP = 12; + tIut[0]->lDept->suiv = NULL; //afficheVillesIUT(tIut, 0);