From: Tobias Brunner Date: Thu, 25 Jul 2013 14:57:42 +0000 (+0200) Subject: watcher: Made notify array initialization compatible with older GCC versions X-Git-Tag: 5.1.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2d9c7688fcef70c892c17d87a2b192cbc7e289;p=thirdparty%2Fstrongswan.git watcher: Made notify array initialization compatible with older GCC versions --- diff --git a/src/libstrongswan/processing/watcher.c b/src/libstrongswan/processing/watcher.c index 69cb3c8f53..3009be608b 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)