Pau Espin Pedrol has posted comments on this change. ( 
https://gerrit.osmocom.org/11911 )

Change subject: IPA: move duplicated error handling into inline function
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

https://gerrit.osmocom.org/#/c/11911/1/src/gsm/ipa.c
File src/gsm/ipa.c:

https://gerrit.osmocom.org/#/c/11911/1/src/gsm/ipa.c@545
PS1, Line 545:  * \param[out] ret result of recv() will be stored in here.
What about errno? not mentioned here.


https://gerrit.osmocom.org/#/c/11911/1/src/gsm/ipa.c@551
PS1, Line 551: static inline bool recv_discard_msg(int *ret, int fd, struct 
msgb *msg, int needed)
IMHO it makes more sense to return ret and have a bool *discard as out param, 
but fine anyway.

BTW, no need to use inline here, let the compiler decide.



--
To view, visit https://gerrit.osmocom.org/11911
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic0147bffaf04b0baf97e5cca22948bd0e116668f
Gerrit-Change-Number: 11911
Gerrit-PatchSet: 1
Gerrit-Owner: Max <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Comment-Date: Sun, 25 Nov 2018 21:50:48 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes

Reply via email to