Ticket #53605: patch-constchar.diff

File patch-constchar.diff, 604 bytes (added by RJVB (René Bertin), 7 years ago)
  • darwin-driver.c

    old new  
    299299  if (vers_string != NULL)
    300300    {
    301301      char *asm_major = NULL;
    302       char *first_period = strchr(vers_string, '.');
     302      const char *first_period = strchr(vers_string, '.');
    303303      if (first_period != NULL)
    304304        {
    305           char *second_period = strchr(first_period+1, '.');
     305          const char *second_period = strchr(first_period+1, '.');
    306306          if (second_period  != NULL)
    307307            asm_major = xstrndup (vers_string, second_period-vers_string);
    308308          else