diff options
author | Simon Rettberg | 2014-12-31 23:39:21 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-31 23:39:21 +0100 |
commit | 6788efa3459b9581b1e4197e37f504d8fb2e8e87 (patch) | |
tree | f177c92792884dd98c82b8d8828b092b2119a36c /src/server/fileutil.h | |
parent | [SERVER] Minor tweaks and improvements (diff) | |
download | dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.tar.gz dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.tar.xz dnbd3-6788efa3459b9581b1e4197e37f504d8fb2e8e87.zip |
[SERVER] Use stdbool.h for booleans; minor refactoring of variable and function names
Diffstat (limited to 'src/server/fileutil.h')
-rw-r--r-- | src/server/fileutil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/fileutil.h b/src/server/fileutil.h index db60699..d868ccc 100644 --- a/src/server/fileutil.h +++ b/src/server/fileutil.h @@ -4,10 +4,10 @@ #include "../types.h" #include <time.h> -int file_isReadable(char *file); -int file_isWritable(char *file); -int mkdir_p(const char* path); -int file_alloc(int fd, uint64_t offset, uint64_t size); +bool file_isReadable(char *file); +bool file_isWritable(char *file); +bool mkdir_p(const char* path); +bool file_alloc(int fd, uint64_t offset, uint64_t size); int64_t file_freeDiskSpace(const char * const path); time_t file_lastModification(const char * const file); |