summaryrefslogtreecommitdiff
path: root/hugin.c
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-02-22 14:37:49 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-02-22 14:37:49 +0100
commit50ffa6904a1afbdbaca76cc434f65fd3e800ebdc (patch)
tree0d488cb54ddd5ad24d765a3ad05ce6b5cda37b43 /hugin.c
parent17765f69c51a9bec4681c129b8cbc76e7374cce4 (diff)
Fix mutex initialisation.
Diffstat (limited to 'hugin.c')
-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,