diff options
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.104 2007/07/21 13:35:45 kls Exp $ + * $Id: tools.h 1.107 2007/08/05 12:11:52 kls Exp $ */ #ifndef __TOOLS_H @@ -28,9 +28,9 @@ typedef unsigned char uchar; extern int SysLogLevel; -#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(LOG_ERR, a) : void() ) -#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(LOG_INFO, a) : void() ) -#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_DEBUG, a) : void() ) +#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_ERR, a) : void() ) #define LOG_ERROR esyslog("ERROR (%s,%d): %m", __FILE__, __LINE__) #define LOG_ERROR_STR(s) esyslog("ERROR: %s: %m", s) @@ -175,9 +175,9 @@ char *strreplace(char *s, char c1, char c2); char *strreplace(char *s, const char *s1, const char *s2); ///< re-allocates 's' and deletes the original string if necessary! inline char *skipspace(const char *s) { - if (*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible + if ((uchar)*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible return (char *)s; - while (*s && *s <= ' ') // avoiding isspace() here, because it is much slower + while (*s && (uchar)*s <= ' ') // avoiding isspace() here, because it is much slower s++; return (char *)s; } @@ -487,8 +487,8 @@ public: class cFileNameList : public cStringList { public: - cFileNameList(const char *Directory = NULL); - bool Load(const char *Directory); + cFileNameList(const char *Directory = NULL, bool DirsOnly = false); + bool Load(const char *Directory, bool DirsOnly = false); }; class cHashObject : public cListObject { |