Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/6843/1/src/vty/fsm_vty.c
File src/vty/fsm_vty.c:

Line 192:       if (!osmo_fsm_vty_cmds_installed) {
what we normally do is 

if (osmo_fsm_vty_cmds_installed)
     return;

to avoid having to indent all of the other statements in the function body and 
loose horizontal screen real-estate.

Also, if we go for this pattern, there are many other instances where the vty 
commands are installed from libraries.

One might even hide the logic inside install_element itse?lf? not sure.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I10b0b1c1c1bf44c3b8eafc465c1ee06ea2590682
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Stefan Sperling <ssperl...@sysmocom.de>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-HasComments: Yes

Reply via email to