From 1f2d9c7688fcef70c892c17d87a2b192cbc7e289 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 25 Jul 2013 16:57:42 +0200 Subject: [PATCH] watcher: Made notify array initialization compatible with older GCC versions --- src/libstrongswan/processing/watcher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libstrongswan/processing/watcher.c b/src/libstrongswan/processing/watcher.c index 69cb3c8f5..3009be608 100644 --- a/src/libstrongswan/processing/watcher.c +++ b/src/libstrongswan/processing/watcher.c @@ -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)