aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:42:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-27 10:42:28 +0100
commit251aa918da9bea6fcf5ba916df8b616b130e8ada (patch)
treea27c952ffd0de480d6f74732ffcfd5051d345ec2 /openbsc
parent100fe569304a39fe02ce7744dc7478a6a7b5d2cc (diff)
misc: Make bitfields unsigned int...
There is no use to have a signed bit in bitfields..
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_data.h4
-rw-r--r--openbsc/include/openbsc/timer.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 9a277aeee..927c32846 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -124,8 +124,8 @@ struct gsm_nm_state {
*/
struct gsm_loc_updating_operation {
struct timer_list updating_timer;
- int waiting_for_imsi : 1;
- int waiting_for_imei : 1;
+ unsigned int waiting_for_imsi : 1;
+ unsigned int waiting_for_imei : 1;
};
#define MAX_A5_KEY_LEN (128/8)
diff --git a/openbsc/include/openbsc/timer.h b/openbsc/include/openbsc/timer.h
index a1ad92cfc..fee888bfd 100644
--- a/openbsc/include/openbsc/timer.h
+++ b/openbsc/include/openbsc/timer.h
@@ -44,9 +44,9 @@
struct timer_list {
struct llist_head entry;
struct timeval timeout;
- int active : 1;
- int handled : 1;
- int in_list : 1;
+ unsigned int active : 1;
+ unsigned int handled : 1;
+ unsigned int in_list : 1;
void (*cb)(void*);
void *data;