--- rpl/src/instructions_a5.c 2022/09/07 13:40:33 1.74 +++ rpl/src/instructions_a5.c 2022/10/02 08:01:20 1.75 @@ -51,8 +51,6 @@ instruction_alarm(struct_processus *s_et struct_objet *s_objet_argument; - struct timeb st; - struct timespec attente; struct timeval debut_interruption; @@ -64,6 +62,7 @@ instruction_alarm(struct_processus *s_et struct tm s_time_registre; time_t alarme; + time_t st; (*s_etat_processus).erreur_execution = d_ex; @@ -149,8 +148,8 @@ instruction_alarm(struct_processus *s_et return; } - st.time = time(NULL); - s_time_actuel = localtime(&(st.time)); + st = time(NULL); + s_time_actuel = localtime(&st); l_element_courant = (*s_objet_argument).objet; s_time_alarme.tm_hour = (int) (*((integer8 *) (*(*l_element_courant) @@ -233,7 +232,7 @@ instruction_alarm(struct_processus *s_et return; } - while((duree = difftime(alarme, st.time)) < 0) + while((duree = difftime(alarme, st)) < 0) { if (specification_date == d_vrai) {