summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-02-11 13:00:19 +0700
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-02-11 13:00:19 +0700
commit70926c8bb545139882f176c1893ca30363aa0956 (patch)
tree45be8b7976f2d086498a660298d6e945ab0636d9 /src
parent14488c1c46c8498f606a005904a3266c63073e28 (diff)
evpoll: Use {} in the middle of the if/else if/else block
Curly braces are used the lines above and below, don't make the middle stick out like this. Change-Id: I48a15a8665a47db206f8a7ccbc792f6bec8549c2
Diffstat (limited to 'src')
-rw-r--r--src/evpoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evpoll.c b/src/evpoll.c
index 9593764..1648080 100644
--- a/src/evpoll.c
+++ b/src/evpoll.c
@@ -68,9 +68,9 @@ int evpoll(struct pollfd *fds, nfds_t nfds, int timeout)
*/
if (timeout == 0) {
tv = &null_tv;
- } else if (timeout == -1)
+ } else if (timeout == -1) {
tv = osmo_timers_nearest();
- else {
+ } else {
poll_tv.tv_sec = timeout / 1000;
poll_tv.tv_usec = (timeout % 1000) * 1000;