misc: Make bitfields unsigned int...
There is no use to have a signed bit in bitfields..
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 9a277ae..927c328 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -124,8 +124,8 @@
*/
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 a1ad92c..fee888b 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;