watcher: Made notify array initialization compatible with older GCC versions
authorTobias Brunner <tobias@strongswan.org>
Thu, 25 Jul 2013 14:57:42 +0000 (16:57 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 25 Jul 2013 14:57:42 +0000 (16:57 +0200)
src/libstrongswan/processing/watcher.c

index 69cb3c8..3009be6 100644 (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)