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/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( 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(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/66/19666/1
diff --git a/src/vty/command.c b/src/vty/command.c
index fba8ef5..6d2bdbe 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2216,23 +2216,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: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200816/35df0818/attachment.htm>