From 9603bfd3cc9171236c3f77a23e40b62036ea4f06 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 12 Jun 2013 11:49:54 +0200 Subject: [PATCH] Use correct modifier, and don't lie about pointer type. --- src/surf/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1