diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-04 16:17:04 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-06 14:50:24 +0200 |
commit | b978d1582f948871709acc6d606fbc3b60f0bf01 (patch) | |
tree | 268284e797e17c4322b924dd50acb43ae9cfd81d /include | |
parent | 7b36d0b0a0d87a80160f6c2398ea7bb7ff0ccd67 (diff) |
nm_statechg_signal_data: Convert state ptr to data
There's no need to use pointers there, it is only asking for errors from
code handling the data structe from the signal by attempting to change
them. Even for mem size point of view it doesn't make sense, since it's
3 byte vs a 4 byte pointer.
Furthermore, this is a preparation for new commit, where the NM object
current state will be updated before emitting the signal. This patch
eases a lot the follow up mentioned patch.
Change-Id: I9b648dfd8392b7b40bfe2b38f3345017481f5129
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 f775b5b89..17c9c03f1 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; - const struct gsm_nm_state *old_state; - const struct gsm_nm_state *new_state; + struct gsm_nm_state old_state; + struct gsm_nm_state new_state; /* This pointer is valid for TS 12.21 MO */ struct abis_om_obj_inst *obj_inst; |