From 51d8d22a9be16060ccf6a81a4e1544a7e4b196df Mon Sep 17 00:00:00 2001 From: Yuri Date: Mon, 9 Jan 2017 16:14:52 -0800 Subject: Added curly braces. --- libjack/thread.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libjack/thread.c b/libjack/thread.c index 4727c07..a7466cc 100644 --- a/libjack/thread.c +++ b/libjack/thread.c @@ -300,8 +300,9 @@ jack_drop_real_time_scheduling (pthread_t thread) strerror (errno)); return -1; } - if (policy == SCHED_OTHER) + if (policy == SCHED_OTHER) { return 0; // already + } memset (&rtparam, 0, sizeof(rtparam)); @@ -320,8 +321,9 @@ jack_acquire_real_time_scheduling (pthread_t thread, int priority) struct sched_param rtparam; int x; - if (jack_process_already_has_real_time_scheduling (priority) != 0) + if (jack_process_already_has_real_time_scheduling (priority) != 0) { return 0; + } memset (&rtparam, 0, sizeof(rtparam)); rtparam.sched_priority = priority; -- cgit v1.2.1