FILE *conf= fopen("/proc/sys/vm/max_map_count","r");
if (conf) {
int limit=-1;
- if(!fscanf(conf,"%d",&limit))
+ if(fscanf(conf,"%d",&limit) != 1)
xbt_die("Error while creating a new coroutine. Parse error.");
fclose(conf);
if (limit!=-1 && SIMIX_process_count() > (limit - 100) /2)
to_append = bprintf("frame_name=%s\n", frame_name);
xbt_strbuff_append(variables, to_append);
xbt_free(to_append);
- to_append = bprintf("ip=%lx\n", ip);
+ to_append = bprintf("ip=%lx\n", (unsigned long)ip);
xbt_strbuff_append(variables, to_append);
xbt_free(to_append);