Change in libosmocore[master]: vty/command: fix switch / case coding style in vty_go_parent()

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Aug 20 06:23:11 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/19666 )

Change subject: vty/command: fix switch / case coding style in vty_go_parent()
......................................................................

vty/command: fix switch / case coding style in vty_go_parent()

Change-Id: I6f7f5af6879d91811be6f0edf3feb2ebae185ac7
---
M src/vty/command.c
1 file changed, 15 insertions(+), 15 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/src/vty/command.c b/src/vty/command.c
index d8fe463..d5e9d27 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2217,23 +2217,23 @@
 int vty_go_parent(struct vty *vty)
 {
 	switch (vty->node) {
-		case AUTH_NODE:
-		case VIEW_NODE:
-		case ENABLE_NODE:
-		case CONFIG_NODE:
-			vty_clear_parents(vty);
-			break;
+	case AUTH_NODE:
+	case VIEW_NODE:
+	case ENABLE_NODE:
+	case CONFIG_NODE:
+		vty_clear_parents(vty);
+		break;
 
-		case AUTH_ENABLE_NODE:
-			vty->node = VIEW_NODE;
-			vty_clear_parents(vty);
-			break;
+	case AUTH_ENABLE_NODE:
+		vty->node = VIEW_NODE;
+		vty_clear_parents(vty);
+		break;
 
-		default:
-			if (host.app_info->go_parent_cb)
-				host.app_info->go_parent_cb(vty);
-			vty_pop_parent(vty);
-			break;
+	default:
+		if (host.app_info->go_parent_cb)
+			host.app_info->go_parent_cb(vty);
+		vty_pop_parent(vty);
+		break;
 	}
 
 	return vty->node;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19666
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6f7f5af6879d91811be6f0edf3feb2ebae185ac7
Gerrit-Change-Number: 19666
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200820/c4239f6e/attachment.htm>


More information about the gerrit-log mailing list