Change in osmo-msc[master]: libmsc/gsm_09_11.c: implement guard timer for NCSS sessions

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed Feb 6 10:30:47 UTC 2019


Vadim Yanitskiy has posted comments on this change. ( https://gerrit.osmocom.org/11992 )

Change subject: libmsc/gsm_09_11.c: implement guard timer for NCSS sessions
......................................................................


Patch Set 8:

Hi Max,

 > Same comments as before.
 > Patch set 8: Code-Review -1

same opinion as before: not critical.

> If that's the only reason than it's better to use uint8_t
> (which can be casted to int without any issues) to keep it
> consistent with vty code.

Your suggestion to use 'uint8_t' wouldn't make it better, as there is no need to use fixed-size type in this particular case. We can extend the VTY later on to allow longer timeout values, so using generic 'unsigned int' would make more sense.

Anyway, in general we neither use 'unsigned int' nor fixed-types in the 'for' statements where the counter 'i' is always > 0 - we just use 'int' and leave it up to the compiler. Nobody does complain about this.

This patch is consistent with the current code, where we use 'int' for MNCC timeout, as well as with the libosmocore's API, where osmo_timer_schedule() does accept 'int'. The change does what is written in the commit message, and it also has the test case, so I don't see any reason to block it due to such minor issues. Again, if you have enough time and strong desire, feel free to submit a patch that changes both variables to 'unsigned int'.


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

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Icf4d87c45e90324764073e8230e0fb9cb96dd9cb
Gerrit-Change-Number: 11992
Gerrit-PatchSet: 8
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-CC: Stefan Sperling <stsp at stsp.name>
Gerrit-Comment-Date: Wed, 06 Feb 2019 10:30:47 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190206/ae3c8b96/attachment.htm>


More information about the gerrit-log mailing list