From 3e60348b3b3ed232ce89b90ee6c8c68a96108cc7 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 2 Mar 2012 14:14:33 +0100 Subject: misc: Deal with smatch warnings about the bitfields Use unsigned ints for the bitfield. --- openbsc/include/openbsc/gprs_ns.h | 2 +- openbsc/include/openbsc/gsm_data_shared.h | 8 ++++---- 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; }; -- cgit v1.2.3