diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-11-11 17:34:40 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-11-15 11:16:22 +0100 |
commit | 8d3f18888bf75a0ab4ed8aa2215610bde7cbc56a (patch) | |
tree | 77c60b9ec406285006a275c5d75bc333b0bd6dcf | |
parent | 8073e5195ca1b7fccc7714c8e6faac9697238059 (diff) |
hnbap_common: hnbap_cause_str: handle nothing val
Fix for:
../../../src/osmo-iuh/src/hnbap_common.c:85:9: error: enumeration value ‘HNBAP_Cause_PR_NOTHING’ not handled in switch [-Werror=switch]
Change-Id: Icab3052e27d1951129e3809e61357ee23c4cb588
-rw-r--r-- | src/hnbap_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hnbap_common.c b/src/hnbap_common.c index be7d570..67cc30c 100644 --- a/src/hnbap_common.c +++ b/src/hnbap_common.c @@ -103,6 +103,9 @@ char *hnbap_cause_str(HNBAP_Cause_t *cause) get_value_string(hnbap_cause_misc_vals, cause->choice.misc)); break; + case HNBAP_Cause_PR_NOTHING: + snprintf(buf, sizeof(buf), "NOTHING"); + break; } return buf; } |