From: Arnaud Giersch Date: Wed, 12 Jun 2013 09:49:54 +0000 (+0200) Subject: Use correct modifier, and don't lie about pointer type. X-Git-Tag: v3_9_90~276^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9603bfd3cc9171236c3f77a23e40b62036ea4f06?ds=sidebyside Use correct modifier, and don't lie about pointer type. --- diff --git a/src/surf/storage.c b/src/surf/storage.c index 98d74e7663..2e4675af22 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -539,7 +539,7 @@ static xbt_dict_t parse_storage_content(char *filename, size_t *used_size) while ((read = xbt_getline(&line, &len, file)) != -1) { if (read){ - if(sscanf(line,"%s %lu",path, (unsigned long*)&size)==2) { + if(sscanf(line,"%s %zu",path, &size)==2) { *used_size += size; xbt_dict_set(parse_content,path,(void*) size,NULL); } else {