Ticket #21611: patch-displib.c.diff

File patch-displib.c.diff, 745 bytes (added by mjhsieh@…, 15 years ago)
  • displib.c

    old new  
    7676
    7777   if ( nread != n )
    7878      {
    79       fprintf(stderr,"Unable to fread(%d elements of size %d).  fread() returned %d  Error: %s\n",n,size,nread,strerror(errno));
     79      fprintf(stderr,"Unable to fread(%ld elements of size %ld).  fread() returned %ld  Error: %s\n",n,size,nread,strerror(errno));
    8080      exit(EXIT_FAILURE);
    8181      }
    8282}
     
    8989
    9090   if ( nwritten != n )
    9191      {
    92       fprintf(stderr,"Unable to fwrite(%d elements of size %d): %s\n",n,size,strerror(errno));
     92      fprintf(stderr,"Unable to fwrite(%ld elements of size %ld): %s\n",n,size,strerror(errno));
    9393      exit(EXIT_FAILURE);
    9494      }
    9595}