From 798026732c3432883f1f261306c475c023e30a68 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Wed, 12 Jun 2013 00:27:39 +0200 Subject: [PATCH] remove warnings 2 --- 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 20105acaf4..98d74e7663 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, &size)==2) { + if(sscanf(line,"%s %lu",path, (unsigned long*)&size)==2) { *used_size += size; xbt_dict_set(parse_content,path,(void*) size,NULL); } else { -- 2.20.1