lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/19415 )

Change subject: socket: add osmo_sockaddr_cmp()
......................................................................


Patch Set 16:

(9 comments)

https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c
File src/socket.c:

https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1562
PS11, Line 1562: /*! Compare two osmo_sockaddr. Return 0 if they are same
> "the same". End with a ".". Actually the \return is already below.
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1563
PS11, Line 1563:  * \brief osmo_sockaddr_cmp
> we use AUTO_BRIEF, so drop this \brief line
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1566
PS11, Line 1566:  * \return 0 if a and b are equal.
> the naming of "cmp" implies being able to use the return code for sorting. […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1570
PS11, Line 1570:        if (!a && !b)
> this could be just […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1573
PS11, Line 1573:                return 1;
> -1
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1577
PS11, Line 1577:                return 1;
> return OSMO_CMP(a->.., b->.. […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1583
PS11, Line 1583:                         a->u.sin.sin_port == 
b->u.sin.sin_port);
> cleaner, type wise, would be to return <condition> ? 0 : 1 […]
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1585
PS11, Line 1585:                /* AF_INET6 usally not contain any padding */
> "does not"
Done


https://gerrit.osmocom.org/c/libosmocore/+/19415/11/src/socket.c@1588
PS11, Line 1588:                /* fallback to memcmp for remaing AF */
> "remaining"
Done



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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2d12ebae2710ffd17cf071e6ada0804e73f87dd6
Gerrit-Change-Number: 19415
Gerrit-PatchSet: 16
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-Comment-Date: Wed, 02 Sep 2020 16:31:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <[email protected]>
Gerrit-MessageType: comment

Reply via email to