diff --git a/source/chargEtSauvFich.c b/source/chargEtSauvFich.c index 97ee55a..93fcc24 100644 --- a/source/chargEtSauvFich.c +++ b/source/chargEtSauvFich.c @@ -32,12 +32,12 @@ int chargIutDon(VilleIut *tVilleIut[], int nbMax, char nomFich[]) exit(1); } strcpy(tVilleIut[i]->nom, nom); - tVilleIut[i]->ldept = listenouv(); - ajouterDept(tVilleIut[i]->ldept, nomDept, resp, nbP); + tVilleIut[i]->lDept = listenouv(); + ajouterDept(tVilleIut[i]->lDept, nomDept, resp, nbP); i = i + 1; } if(trouve==1) - ajouterDept(tVilleIut[indice]->ldept, nomDept, resp, nbP); + ajouterDept(tVilleIut[indice]->lDept, nomDept, resp, nbP); fscanf(flot, "%s", nom); lireDep(flot, nomDept, &nbP, resp); } diff --git a/source/iut.c b/source/iut.c index 6cc1dab..edb2963 100644 --- a/source/iut.c +++ b/source/iut.c @@ -2,6 +2,6 @@ VilleIut ajouterDepartement(VilleIut iut, char nom[30], char resp[30], int nbP) { - iut.ldept = ajouterDept(iut.ldept, nom, resp, nbP); + iut.lDept = ajouterDept(iut.lDept, nom, resp, nbP); return iut; } \ No newline at end of file