summaryrefslogtreecommitdiff
path: root/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers.h b/helpers.h
index 9935593..951f38a 100644
--- a/helpers.h
+++ b/helpers.h
@@ -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);
};