pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/28034 )

Change subject: abis_nm: Use proper define for avail state 0xff
......................................................................

abis_nm: Use proper define for avail state 0xff

Change-Id: If5474700d368e99c8242290e3890b751fe1e85c2
---
M src/osmo-bsc/abis_nm.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index e63f3da..980d215 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -269,14 +269,14 @@
        }
        if (TLVP_PRESENT(&tp, NM_ATT_AVAIL_STATUS)) {
                if (TLVP_LEN(&tp, NM_ATT_AVAIL_STATUS) == 0)
-                       new_state.availability = 0xff;
+                       new_state.availability = NM_AVSTATE_OK;
                else
                        new_state.availability = *TLVP_VAL(&tp, 
NM_ATT_AVAIL_STATUS);
                DEBUGPC(DNM, "AVAIL=%s(%02x) ",
                        abis_nm_avail_name(new_state.availability),
                        new_state.availability);
        } else
-               new_state.availability = 0xff;
+               new_state.availability = NM_AVSTATE_OK;
        if (TLVP_PRESENT(&tp, NM_ATT_ADM_STATE)) {
                new_state.administrative = *TLVP_VAL(&tp, NM_ATT_ADM_STATE);
                DEBUGPC(DNM, "ADM=%2s ",

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If5474700d368e99c8242290e3890b751fe1e85c2
Gerrit-Change-Number: 28034
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to