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

mobile: Use enum and not magic value in the VTY

Change-Id: I8a1d975997e592344327e6b0783bd0c5d2534b02
---
M src/host/layer23/src/mobile/vty_interface.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/99/5099/1

diff --git a/src/host/layer23/src/mobile/vty_interface.c 
b/src/host/layer23/src/mobile/vty_interface.c
index 5a47736..eafed6e 100644
--- a/src/host/layer23/src/mobile/vty_interface.c
+++ b/src/host/layer23/src/mobile/vty_interface.c
@@ -2703,7 +2703,7 @@
                return CMD_SUCCESS;
 
        llist_for_each_entry(tmp, &ms_list, entity) {
-               if (tmp->shutdown == 3)
+               if (tmp->shutdown == MS_SHUTDOWN_COMPL)
                        continue;
                if (!strcmp(ms->settings.layer2_socket_path,
                                tmp->settings.layer2_socket_path)) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a1d975997e592344327e6b0783bd0c5d2534b02
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <[email protected]>

Reply via email to