aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-03-02 14:14:33 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-02 14:14:33 +0100
commit3e60348b3b3ed232ce89b90ee6c8c68a96108cc7 (patch)
treefba52525e5b96fdf0f932ac55e35178e70ce40ca /openbsc/include
parenta8ddb08e05295b11ffe2270c6736ce2f9e62180a (diff)
misc: Deal with smatch warnings about the bitfields
Use unsigned ints for the bitfield.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gprs_ns.h2
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/gprs_ns.h b/openbsc/include/openbsc/gprs_ns.h
index f0ec26ed5..7045d84d1 100644
--- a/openbsc/include/openbsc/gprs_ns.h
+++ b/openbsc/include/openbsc/gprs_ns.h
@@ -154,7 +154,7 @@ struct gprs_ns_inst {
struct {
struct osmo_fd fd;
uint32_t local_ip;
- int enabled:1;
+ unsigned int enabled:1;
} frgre;
};
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index bddf046ee..781e43aa0 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -521,10 +521,10 @@ struct gsm_bts {
} hsl;
struct {
uint8_t bts_type;
- int configured:1,
- skip_reset:1,
- did_reset:1,
- wait_reset:1;
+ unsigned int configured:1,
+ skip_reset:1,
+ did_reset:1,
+ wait_reset:1;
struct osmo_timer_list reset_timer;
} nokia;
};