watcher: Made notify array initialization compatible with older GCC versions

This commit is contained in:
Tobias Brunner
2013-07-25 16:57:42 +02:00
parent ebb4ad1baa
commit 1f2d9c7688
+1 -2
View File
@@ -439,8 +439,7 @@ watcher_t *watcher_create()
.mutex = mutex_create(MUTEX_TYPE_DEFAULT),
.condvar = condvar_create(CONDVAR_TYPE_DEFAULT),
.jobs = linked_list_create(),
.notify[0] = -1,
.notify[1] = -1,
.notify = {-1, -1},
);
if (pipe(this->notify) == 0)