Attention is currently required from: neels, pespin, fixeria.
laforge has posted comments on this change. (
https://gerrit.osmocom.org/c/osmo-msc/+/30114 )
Change subject: add codec_mapping.h,c
......................................................................
Patch Set 4:
(2 comments)
File include/osmocom/msc/codec_mapping.h:
https://gerrit.osmocom.org/c/osmo-msc/+/30114/comment/884cf9a5_8efb05bd
PS4, Line 44: for ((CODEC_MAPPING) = codec_map; (CODEC_MAPPING) < codec_map +
ARRAY_SIZE(codec_map); (CODEC_MAPPING)++)
this looks buggy to me. […]
It's an
interesting question if the preprocessor really can determine the size here or not. In
general, the codec_mapping codec_map[] is just a forward-declaration. My gut feeling is
that the code as written here will work. But whether it's a gcc side-effect or
something guaranteed to work, I don't know.
File src/libmsc/codec_mapping.c:
https://gerrit.osmocom.org/c/osmo-msc/+/30114/comment/b7acbf05_3a1cecfc
PS4, Line 290: if (bearer_cap->speech_ver[i] == -1) {
Better add this "-1" as a define
"FOOBAR_UNSET"
I actually think -1 is more obvious, and I think we have
plenty of similar examples
--
To view, visit
https://gerrit.osmocom.org/c/osmo-msc/+/30114
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: Iaa307be6a8487aa8d4ba7cd59d5c5ef04818a744
Gerrit-Change-Number: 30114
Gerrit-PatchSet: 4
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 07 Mar 2023 13:01:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment