diff options
author | Yuri <yuri@tsoft.com> | 2017-01-09 16:14:52 -0800 |
---|---|---|
committer | Yuri <yuri@tsoft.com> | 2017-01-09 16:14:52 -0800 |
commit | 51d8d22a9be16060ccf6a81a4e1544a7e4b196df (patch) | |
tree | 4872030d0cdb84cc7190fbce69158f8fa2c40362 | |
parent | 02029576c4eb23c99e780df2b3499b01edf7de5e (diff) | |
download | jack1-51d8d22a9be16060ccf6a81a4e1544a7e4b196df.tar.gz |
Added curly braces.
-rw-r--r-- | libjack/thread.c | 6 |
1 files 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; |