summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hugin.c b/hugin.c
index 98fb276..2c5bde4 100644
--- a/hugin.c
+++ b/hugin.c
@@ -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,