diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-15 10:19:07 +0100 |
---|---|---|
committer | Holger Freyther <holger@freyther.de> | 2017-11-27 09:49:03 +0000 |
commit | 65774d447d8623257e1cbf3694542f4a421017d7 (patch) | |
tree | 530fb9e5cf482ed515f8ea888df47b0d72d6d76d /src/host/layer23/src/mobile | |
parent | 42888ed9470b8217f4abc848ca8a077e17942066 (diff) |
mobile: Use bool to show started can only be true or false
The state handling is complicated and maybe it gets better by
moving started to bool and then the rest to an enum.
Change-Id: I6aef22e7bf954a8a4ecda980c2c558eb8c9180b7
Diffstat (limited to 'src/host/layer23/src/mobile')
-rw-r--r-- | src/host/layer23/src/mobile/app_mobile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index 43631f39..1905010e 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -131,7 +131,7 @@ int mobile_signal_cb(unsigned int subsys, unsigned int signal, gsm322_cs_sendmsg(ms, nmsg); } - ms->started = 1; + ms->started = true; } return 0; } @@ -231,7 +231,7 @@ int mobile_init(struct osmocom_ms *ms) gsm_random_imei(&ms->settings); ms->shutdown = 0; - ms->started = 0; + ms->started = false; if (!strcmp(ms->settings.imei, "000000000000000")) { LOGP(DMOB, LOGL_NOTICE, "***\nWarning: Mobile '%s' has default IMEI: %s\n", @@ -291,7 +291,7 @@ int mobile_delete(struct osmocom_ms *ms, int force) { int rc; - ms->deleting = 1; + ms->deleting = true; if (mncc_recv_app) { mncc_sock_exit(ms->mncc_entity.sock_state); |