Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove warnings 2
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 11 Jun 2013 22:27:39 +0000 (00:27 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Tue, 11 Jun 2013 22:27:39 +0000 (00:27 +0200)
src/surf/storage.c

index 20105ac..98d74e7 100644 (file)
@@ -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){
 
   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 {
         *used_size += size;
         xbt_dict_set(parse_content,path,(void*) size,NULL);
       } else {