diff options
author | Martin Kletzander <mkletzan@redhat.com> | 2014-11-13 15:20:43 +0100 |
---|---|---|
committer | Martin Kletzander <mkletzan@redhat.com> | 2014-11-14 17:13:36 +0100 |
commit | f5e65e4b7104c645c18ba795693aca90d8d263cc (patch) | |
tree | 3e072e999a2f2660740c53d4c286420a50c49a39 /tests/shunloadtest.c | |
parent | 91cc3d95708db743b06a23bd1a61e88bd33ba641 (diff) | |
download | libvirt-f5e65e4b7104c645c18ba795693aca90d8d263cc.tar.gz |
Remove unnecessary curly brackets in tests/
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'tests/shunloadtest.c')
-rw-r--r-- | tests/shunloadtest.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c index 80f535134f..37d990d71b 100644 --- a/tests/shunloadtest.c +++ b/tests/shunloadtest.c @@ -74,9 +74,8 @@ static void *threadMain(void *arg) pthread_cond_signal(&cond); } - while (!quit) { + while (!quit) pthread_cond_wait(&cond, &lock); - } pthread_mutex_unlock(&lock); return NULL; @@ -126,9 +125,8 @@ int main(int argc ATTRIBUTE_UNUSED, char **argv) /* Wait for the thread to start and call libvirt */ pthread_mutex_lock(&lock); - while (!running && !failstart) { + while (!running && !failstart) pthread_cond_wait(&cond, &lock); - } /* Close the shared library (and thus make libvirt.so * non-resident */ |