mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
general code cleanup
This commit is contained in:
parent
5a1a60742e
commit
9d9ee7b71d
178 changed files with 5100 additions and 5255 deletions
|
|
@ -28,9 +28,18 @@ namespace fs
|
|||
static
|
||||
inline
|
||||
int
|
||||
truncate(const std::string &path,
|
||||
const off_t length)
|
||||
truncate(const char *path_,
|
||||
const off_t length_)
|
||||
{
|
||||
return ::truncate(path.c_str(),length);
|
||||
return ::truncate(path_,length_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
truncate(const std::string &path_,
|
||||
const off_t length_)
|
||||
{
|
||||
return fs::truncate(path_.c_str(),length_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue