1
1

You can't have a variable of the same name as the function...

Этот коммит содержится в:
Ralph Castain 2014-12-05 21:50:40 -08:00
родитель aff1f0ee49
Коммит 4a0b4ad5ef

Просмотреть файл

@ -32,12 +32,6 @@
#include <sys/param.h> #include <sys/param.h>
#include <sys/mount.h> #include <sys/mount.h>
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#include "support.h" #include "support.h"
#include "opal/util/path.h" #include "opal/util/path.h"
@ -141,7 +135,7 @@ void get_mounts (int * num_dirs, char ** dirs[], bool * nfs[])
char ** dirs_tmp; char ** dirs_tmp;
bool * nfs_tmp; bool * nfs_tmp;
char buffer[SIZE]; char buffer[SIZE];
struct statfs statfs; struct statfs mystatfs;
rc = system (cmd); rc = system (cmd);
@ -190,7 +184,7 @@ void get_mounts (int * num_dirs, char ** dirs[], bool * nfs[])
} }
/* If we can not stat the fs, skip it */ /* If we can not stat the fs, skip it */
if (statfs (dirs_tmp[i], &statfs)) { if (statfs (dirs_tmp[i], &mystatfs)) {
continue; continue;
} }