diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-04 16:09:59 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-05 14:51:13 +0200 |
commit | 7d621e0a79e940864cc3d3d4a057ccea9aeeb64a (patch) | |
tree | 4ac7077c0f016d2d0ac0620d2500459a7326656a /include | |
parent | 7cedfd4a4478028743404ef59b93162772e1cf0d (diff) |
constify state pointers of struct gsm_nm_state
This makes sure code accessing those fields is not changing its values,
since it would make no sense to change those. Follow up commit will make
convert those pointers to be full structs instead, as there's no need to
have pointers there.
Change-Id: I9979e62eac861e25bbe2161ab187ddb2b40fd097
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/signal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/bsc/signal.h b/include/osmocom/bsc/signal.h index c787c894e..f775b5b89 100644 --- a/include/osmocom/bsc/signal.h +++ b/include/osmocom/bsc/signal.h @@ -131,8 +131,8 @@ struct nm_statechg_signal_data { struct gsm_bts *bts; uint8_t obj_class; void *obj; - struct gsm_nm_state *old_state; - struct gsm_nm_state *new_state; + const struct gsm_nm_state *old_state; + const struct gsm_nm_state *new_state; /* This pointer is valid for TS 12.21 MO */ struct abis_om_obj_inst *obj_inst; |