Branch: Tag:

2014-04-27

2014-04-27 20:37:42 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

1458: Inside #if defined(HAVE_WORKING_GETCWD) || !defined(HAVE_GETWD)
      size=1000;    do { -  tmp=(char *)xalloc(size); +  tmp=xalloc(size);    e = getcwd(tmp,size);    if (e || errno!=ERANGE) break;    free(tmp);
1559: Inside #if defined(HAVE_EXECVE)
   SIMPLE_BAD_ARG_ERROR("exece", 1, "string");    }    -  argv=(char **)xalloc((2+sp[1-args].u.array->size) * sizeof(char *)); +  argv=xalloc((2+sp[1-args].u.array->size) * sizeof(char *));       argv[0]=sp[0-args].u.string->str;   
1576: Inside #if defined(HAVE_EXECVE)
   INT32 e, i = 0;    struct keypair *k;    -  env=(char **)malloc((1+m_sizeof(en)) * sizeof(char *)); +  env=malloc((1+m_sizeof(en)) * sizeof(char *));    if(!env) {    free(argv);    SIMPLE_OUT_OF_MEMORY_ERROR("exece", (1+m_sizeof(en)*sizeof(char *)));