[MERGED] osmo-sip-connector[master]: evpoll: Use {} in the middle of the if/else if/else block

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Feb 13 22:09:12 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: evpoll: Use {} in the middle of the if/else if/else block
......................................................................


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
---
M src/evpoll.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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 @@
 	 */
 	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;
 

-- 
To view, visit https://gerrit.osmocom.org/1795
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I48a15a8665a47db206f8a7ccbc792f6bec8549c2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list