[PATCH] 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/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Sat Feb 11 06:09:31 UTC 2017


Review at  https://gerrit.osmocom.org/1795

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/95/1795/1

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: newchange
Gerrit-Change-Id: I48a15a8665a47db206f8a7ccbc792f6bec8549c2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>



More information about the gerrit-log mailing list