Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation error with gcc4.4
authornavarro <navarro@caraja.(none)>
Tue, 10 Apr 2012 10:24:05 +0000 (12:24 +0200)
committernavarro <navarro@caraja.(none)>
Tue, 10 Apr 2012 10:24:05 +0000 (12:24 +0200)
error: redefinition of typedef 'surf_stat_t'

src/simix/smx_private.h
src/surf/storage_private.h

index 28cbd06..824239f 100644 (file)
@@ -64,7 +64,7 @@ typedef struct s_smx_file {
 
 typedef struct s_smx_stat {
   s_file_stat_t surf_stat;
 
 typedef struct s_smx_stat {
   s_file_stat_t surf_stat;
-} s_smx_stat_t, *smx_stat_t;
+} s_smx_stat_t;
 
 /*********************************** Time ************************************/
 
 
 /*********************************** Time ************************************/
 
index c5ae4d2..c1b812b 100644 (file)
@@ -23,7 +23,7 @@ typedef struct s_mount {
 typedef struct surf_stat { /* file status structure */
   s_file_stat_t stat;
   /* possible additionnal fields (e.g., popularity, last access time to know whether the file is in cache, ...) */
 typedef struct surf_stat { /* file status structure */
   s_file_stat_t stat;
   /* possible additionnal fields (e.g., popularity, last access time to know whether the file is in cache, ...) */
-} s_surf_stat_t, *surf_stat_t;
+} s_surf_stat_t;
 
 typedef struct surf_file {
   char *name;
 
 typedef struct surf_file {
   char *name;