pespin has uploaded this change for review.

View Change

layer23: Define barr field as bool

Change-Id: I02b95fa5437be1325cfa80fc40350280540fe802
---
M src/host/layer23/include/osmocom/bb/common/settings.h
M src/host/layer23/src/common/vty.c
2 files changed, 12 insertions(+), 3 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/98/32798/1
diff --git a/src/host/layer23/include/osmocom/bb/common/settings.h b/src/host/layer23/include/osmocom/bb/common/settings.h
index add8dc3..f24b006 100644
--- a/src/host/layer23/include/osmocom/bb/common/settings.h
+++ b/src/host/layer23/include/osmocom/bb/common/settings.h
@@ -63,7 +63,7 @@
uint32_t tmsi;
uint8_t ki_type;
uint8_t ki[16]; /* 128 bit max */
- uint8_t barr;
+ bool barr;
bool rplmn_valid;
struct osmo_plmn_id rplmn;
uint16_t lac;
diff --git a/src/host/layer23/src/common/vty.c b/src/host/layer23/src/common/vty.c
index 67105a0..44fc053 100644
--- a/src/host/layer23/src/common/vty.c
+++ b/src/host/layer23/src/common/vty.c
@@ -1019,7 +1019,7 @@
struct osmocom_ms *ms = vty->index;
struct gsm_settings *set = &ms->settings;

- set->test_sim.barr = 1;
+ set->test_sim.barr = true;

return CMD_SUCCESS;
}
@@ -1030,7 +1030,7 @@
struct osmocom_ms *ms = vty->index;
struct gsm_settings *set = &ms->settings;

- set->test_sim.barr = 0;
+ set->test_sim.barr = false;

return CMD_SUCCESS;
}

To view, visit change 32798. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I02b95fa5437be1325cfa80fc40350280540fe802
Gerrit-Change-Number: 32798
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange