Attention is currently required from: dexter, laforge, neels.
View Change
1 comment:
File src/codec/ecu_fr.c:
Patch Set #5, Line 315: struct fr_ecu_state *fr = (struct fr_ecu_state *) st;
Thanks. I have added this now as suggested, but I still do not understand where the advantage is. […]
It removes the need of having one struct being the first field of the other one, plus avoid having problems in the future if somebody decides to add other fields.
This way the compiler is responsible for calculating the address instead of tricking it through explicit casting.
To view, visit change 35212. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I28672856e8e8f47e04ffe09ee3e07b577108cdc7
Gerrit-Change-Number: 35212
Gerrit-PatchSet: 6
Gerrit-Owner: dexter <pmaier@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-Attention: neels <nhofmeyr@sysmocom.de>
Gerrit-Attention: laforge <laforge@osmocom.org>
Gerrit-Attention: dexter <pmaier@sysmocom.de>
Gerrit-Comment-Date: Tue, 02 Jan 2024 11:30:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin@sysmocom.de>
Comment-In-Reply-To: dexter <pmaier@sysmocom.de>
Gerrit-MessageType: comment