Change in osmo-cbc[master]: varaible for atoi() result shouild be signed integer

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Oct 25 09:18:21 UTC 2021


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/25931 )

Change subject: varaible for atoi() result shouild be signed integer
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/c/osmo-cbc/+/25931/1/src/rest_api.c 
File src/rest_api.c:

https://gerrit.osmocom.org/c/osmo-cbc/+/25931/1/src/rest_api.c@605 
PS1, Line 605: 	int message_id;
so iirc there's another patch from Vadim now in gerrit simply dropping the "message_id < 0" check from line 614. Please agree on which one to merge. Being an ID, doesn't look like negative is expected in message_id_str. But perhaps atoi() can return negative if there's an error? It may be a good place to use neel's recent APIs to read integers from string using libosmocore.



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

Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I650fce5bd64752823ee57d8b528d2b371fada857
Gerrit-Change-Number: 25931
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Mon, 25 Oct 2021 09:18:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211025/20a0acd1/attachment.htm>


More information about the gerrit-log mailing list