Diff for /rpl/src/controle.c between versions 1.15 and 1.52

version 1.15, 2010/09/07 20:59:06 version 1.52, 2015/01/05 13:12:30
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.19    RPL/2 (R) version 4.1.19
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2015 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 91  controle(struct_processus *s_etat_proces Line 91  controle(struct_processus *s_etat_proces
   
     taille_fichier = stat_buf.st_size;      taille_fichier = stat_buf.st_size;
   
     if ((chaine = malloc(taille_fichier)) == NULL)      if ((chaine = malloc((size_t) taille_fichier)) == NULL)
     {      {
 #       ifdef OS2  #       ifdef OS2
         free(fichier);          free(fichier);
Line 117  controle(struct_processus *s_etat_proces Line 117  controle(struct_processus *s_etat_proces
     free(fichier);      free(fichier);
 #   endif  #   endif
   
     if ((octets_lus = read(in_fd, chaine, taille_fichier)) != taille_fichier)      if ((octets_lus = read(in_fd, chaine, (size_t) taille_fichier))
               != (ssize_t) taille_fichier)
     {      {
 #       ifndef OS2  #       ifndef OS2
         close(in_fd);          close(in_fd);
Line 141  controle(struct_processus *s_etat_proces Line 142  controle(struct_processus *s_etat_proces
             return(d_faux);              return(d_faux);
         }          }
   
         if (EVP_DigestUpdate(&contexte, chaine, taille_fichier) != 1)          if (EVP_DigestUpdate(&contexte, chaine, (size_t) taille_fichier) != 1)
         {          {
             close(in_fd);              close(in_fd);
             free(chaine);              free(chaine);
Line 170  controle(struct_processus *s_etat_proces Line 171  controle(struct_processus *s_etat_proces
             return(d_faux);              return(d_faux);
         }          }
   
         if (EVP_DigestUpdate(&contexte, chaine, taille_fichier) != 1)          if (EVP_DigestUpdate(&contexte, chaine, (size_t) taille_fichier) != 1)
         {          {
             close(in_fd);              close(in_fd);
             free(chaine);              free(chaine);
Line 219  controle(struct_processus *s_etat_proces Line 220  controle(struct_processus *s_etat_proces
             printf("+++Fatal : Hash code mismatch\n");              printf("+++Fatal : Hash code mismatch\n");
             printf("Function %s(%s)\n", type, registre);              printf("Function %s(%s)\n", type, registre);
             printf("Computed hash code : %s\n", somme_hexadecimale);              printf("Computed hash code : %s\n", somme_hexadecimale);
             printf("Expected hasd code : %s\n", somme_candidate);              printf("Expected hash code : %s\n", somme_candidate);
         }          }
   
         drapeau = d_faux;          drapeau = d_faux;

Removed from v.1.15  
changed lines
  Added in v.1.52


CVSweb interface <joel.bertrand@systella.fr>