From d695f3de06a07b4a752d0c8fc456e0d718ab91fe Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 14 Dec 2005 02:31:57 +0000 Subject: [PATCH] only need 1 sigar_dir_stat_get wrapper --- src/sigar_fileinfo.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/sigar_fileinfo.c b/src/sigar_fileinfo.c index 1a4c6ad5..b5e50a6c 100644 --- a/src/sigar_fileinfo.c +++ b/src/sigar_fileinfo.c @@ -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 @@ -710,12 +702,12 @@ static int dir_stat_get(sigar_t *sigar, return SIGAR_OK; } -int sigar_dir_stat_get(sigar_t *sigar, - const char *dir, - sigar_dir_stat_t *dirstats) +#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