aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-25 16:57:42 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-25 16:57:42 +0200
commit1f2d9c7688fcef70c892c17d87a2b192cbc7e289 (patch)
tree99c6656d8cf5e6d82d6337883ad270bd81b9cfd7 /src
parentebb4ad1baad9c3e4fac383a037bf14b1d9550a4e (diff)
downloadstrongswan-1f2d9c7688fcef70c892c17d87a2b192cbc7e289.tar.bz2
strongswan-1f2d9c7688fcef70c892c17d87a2b192cbc7e289.tar.xz
watcher: Made notify array initialization compatible with older GCC versions
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/processing/watcher.c3
1 files changed, 1 insertions, 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)