diff options
Diffstat (limited to 'hugin.c')
-rw-r--r-- | hugin.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -85,8 +85,11 @@ void mutex_unlock(mutex_t *mutex) #endif } +#define MUTEX_INIT_VALUE {} + #else/*WITH_HUG_MUTEX*/ +#define MUTEX_INIT_VALUE 0 typedef int mutex_t; void mutex_init(mutex_t *mutex) {} void mutex_close(mutex_t *mutex) {} @@ -121,11 +124,11 @@ struct hug_config_t { -1, // file_fd 0, //stdout_no_date //#ifdef WITH_HUG_MUTEX - 0, // mutex; + MUTEX_INIT_VALUE, // mutex; //#endif #ifdef WITH_HUG_SYSLOG - "", // syslog_host; - -1, // syslog_port; + NULL, // syslog_host; + 541, // syslog_port; #endif /* // This doesn't work in C++ .flags = HUG_FLAG_DEFAULT, |