only need 1 sigar_dir_stat_get wrapper

This commit is contained in:
Doug MacEachern 2005-12-14 02:31:57 +00:00
parent 19d9d3fe5f
commit d695f3de06
1 changed files with 5 additions and 13 deletions

View File

@ -478,14 +478,6 @@ static int dir_stat_get(sigar_t *sigar,
return SIGAR_OK;
}
SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar,
const char *dir,
sigar_dir_stat_t *dirstats)
{
SIGAR_ZERO(dirstats);
return dir_stat_get(sigar, dir, dirstats, 0);
}
#else
#include <dirent.h>
@ -710,12 +702,12 @@ static int dir_stat_get(sigar_t *sigar,
return SIGAR_OK;
}
int sigar_dir_stat_get(sigar_t *sigar,
#endif
SIGAR_DECLARE(int) sigar_dir_stat_get(sigar_t *sigar,
const char *dir,
sigar_dir_stat_t *dirstats)
{
SIGAR_ZERO(dirstats);
return dir_stat_get(sigar, dir, dirstats, 0);
}
#endif