general code cleanup

This commit is contained in:
Antonio SJ Musumeci 2019-01-25 07:03:46 -05:00
parent 5a1a60742e
commit 9d9ee7b71d
178 changed files with 5100 additions and 5255 deletions

View file

@ -29,7 +29,7 @@ namespace fs
inline
bool
exists(const std::string &path_,
struct stat &st_)
struct stat *st_)
{
int rv;
@ -45,7 +45,7 @@ namespace fs
{
struct stat st;
return fs::exists(path_,st);
return fs::exists(path_,&st);
}
@ -54,7 +54,7 @@ namespace fs
bool
exists(const std::string &basepath_,
const char *relpath_,
struct stat &st_)
struct stat *st_)
{
std::string fullpath;
@ -71,6 +71,6 @@ namespace fs
{
struct stat st;
return fs::exists(basepath_,relpath_,st);
return fs::exists(basepath_,relpath_,&st);
}
}