Attention is currently required from: pespin.

falconia has posted comments on this change by falconia. ( 
https://gerrit.osmocom.org/c/libosmocore/+/39276?usp=email )

Change subject: osmo_iofd_register: fix the case of changing fd
......................................................................


Patch Set 2:

(1 comment)

File src/core/osmo_io.c:

https://gerrit.osmocom.org/c/libosmocore/+/39276/comment/42fc86fb_945358ce?usp=email
 :
PS2, Line 759:  if (fd >= 0)
> I think you don't even need this "if" line, you can do "iofd->fd = fd;" 
> directly.
No, the conditional is still needed. Users are allowed to set fd earlier and 
pass -1 to `osmo_iofd_register()`; removing the `if` like you propose would 
break that case.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/39276?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: If8b8486ad7934afa203dfe1e996c9217373a017b
Gerrit-Change-Number: 39276
Gerrit-PatchSet: 2
Gerrit-Owner: falconia <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Fri, 10 Jan 2025 02:26:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <[email protected]>

Reply via email to