Commit 30336460 authored by Shane Snyder's avatar Shane Snyder

small fix for module logutils

parent 6959ca27
......@@ -42,6 +42,7 @@ int darshan_log_get_hdf5_file(darshan_fd fd, void **file_rec,
int i;
int ret;
struct darshan_hdf5_file *file = NULL;
*rec_id = 0;
file = malloc(sizeof(*file));
if(!file)
......@@ -62,11 +63,12 @@ int darshan_log_get_hdf5_file(darshan_fd fd, void **file_rec,
for(i=0; i<HDF5_F_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->fcounters[i]);
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
return(ret);
}
......
......@@ -42,6 +42,7 @@ int darshan_log_get_mpiio_file(darshan_fd fd, void **file_rec,
int i;
int ret;
struct darshan_mpiio_file *file = NULL;
*rec_id = 0;
file = malloc(sizeof(*file));
if(!file)
......@@ -62,11 +63,12 @@ int darshan_log_get_mpiio_file(darshan_fd fd, void **file_rec,
for(i=0; i<MPIIO_F_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->fcounters[i]);
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
return(ret);
}
......
......@@ -42,6 +42,7 @@ int darshan_log_get_pnetcdf_file(darshan_fd fd, void **file_rec,
int i;
int ret;
struct darshan_pnetcdf_file *file = NULL;
*rec_id = 0;
file = malloc(sizeof(*file));
if(!file)
......@@ -62,11 +63,12 @@ int darshan_log_get_pnetcdf_file(darshan_fd fd, void **file_rec,
for(i=0; i<PNETCDF_F_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->fcounters[i]);
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
return(ret);
}
......
......@@ -42,6 +42,7 @@ int darshan_log_get_posix_file(darshan_fd fd, void **file_rec,
int i;
int ret;
struct darshan_posix_file *file = NULL;
*rec_id = 0;
file = malloc(sizeof(*file));
if(!file)
......@@ -62,11 +63,12 @@ int darshan_log_get_posix_file(darshan_fd fd, void **file_rec,
for(i=0; i<POSIX_F_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->fcounters[i]);
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
}
/* pass the file record back */
*file_rec = (void *)file;
*rec_id = file->f_id;
return(ret);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment