aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-04-28 01:36:23 +0200
committerlaforge <laforge@osmocom.org>2021-04-28 18:31:31 +0000
commit87fa1caf4b75a4e1b67ac01c73a7d87d51f6431c (patch)
treefcd9666d7795b6daf8916b4da957e8348d20aaf8 /include/osmocom/core
parent903e670c54d165ea5005a1117689e6344387c6f9 (diff)
fix default_timeout type of osmo_tdef_fsm_inst_state_chg default_timeout
The api doc indicates the possibility to pass -1, and calling osmo_tdef_get() actually casts the arg to a signed long. To end the confusion, change default_timeout from unsigned long to long. Change-Id: I51b9172603984839448346c9836e43c8c802fcf8
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/tdef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/tdef.h b/include/osmocom/core/tdef.h
index 627ba3f9..d9d26751 100644
--- a/include/osmocom/core/tdef.h
+++ b/include/osmocom/core/tdef.h
@@ -162,7 +162,7 @@ const struct osmo_tdef_state_timeout *osmo_tdef_get_state_timeout(uint32_t state
__FILE__, __LINE__)
int _osmo_tdef_fsm_inst_state_chg(struct osmo_fsm_inst *fi, uint32_t state,
const struct osmo_tdef_state_timeout *timeouts_array,
- const struct osmo_tdef *tdefs, unsigned long default_timeout,
+ const struct osmo_tdef *tdefs, signed long default_timeout,
const char *file, int line);
/*! Manage timer definitions in named groups.