diff options
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,6 +16,8 @@ #define FREENULL(p) (free(p), p = NULL) void OsdMsg(eMessageType Type, const char *Msg); +void OSDErrorNumMsg(int err, const char* szDef); +void SysLogErrorNumMsg(int err, const char* szDef); void ChangeChars(char *name, char *chars); void StrRepeat(const char *input, int count, char *dest); bool RegIMatch(const char *string,const char *pattern); @@ -157,7 +159,7 @@ class cFileCMD public: static bool Del(const char *file); static bool Mkdir(const char *dir) { return MakeDirs(dir, true); } - static bool Rn(const char *oldfile, const char *newfile) { return !rename(oldfile, newfile); } + static bool Rn(const char *oldfile, const char *newfile) { return 0 == rename(oldfile, newfile); } static bool DirIsEmpty(const char *file); }; |