diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-08-28 16:08:45 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-08-28 16:08:49 +0200 |
commit | aa89f5dffced73ee9e7267739193771e6d143b89 (patch) | |
tree | 43ddbc1c08ffc65ba77f99068d39d29ff2905fe5 /include | |
parent | 5623eb843958bf65ac9fe323a914788b8092b073 (diff) |
gtp: make echo_interval unsigned
There's no real need to use -1 to indicate echo timer as disabled, since
0 can also be used (it doesn't make sense to have a timer timeout of 0).
This way code is simplified.
Change-Id: I689034887188a53590eddeffda781629694eb5ed
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/sgsn/gprs_sgsn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h index 336155c9b..48c063d07 100644 --- a/include/osmocom/sgsn/gprs_sgsn.h +++ b/include/osmocom/sgsn/gprs_sgsn.h @@ -392,7 +392,7 @@ struct sgsn_ggsn_ctx { struct gsn_t *gsn; struct llist_head pdp_list; /* list of associated pdp ctx (struct sgsn_pdp_ctx*) */ struct osmo_timer_list echo_timer; - int echo_interval; + unsigned int echo_interval; }; struct sgsn_ggsn_ctx *sgsn_ggsn_ctx_alloc(uint32_t id); void sgsn_ggsn_ctx_free(struct sgsn_ggsn_ctx *ggc); |