Skip to content

Commit

Permalink
Remove bit fields as CI iss complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
k1-801 committed Apr 9, 2024
1 parent 2bc6b5f commit 659db59
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions libusb/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ static struct hid_hotplug_context {
pthread_mutex_t mutex;

/* Boolean flags are set to only use 1 bit each */
int mutex_ready : 1;
int mutex_in_use : 1;
int cb_list_dirty : 1;
int mutex_ready;
int mutex_in_use;
int cb_list_dirty;

struct hid_hotplug_queue* queue;

Expand Down
6 changes: 3 additions & 3 deletions linux/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,9 @@ static struct hid_hotplug_context {
pthread_mutex_t mutex;

/* Boolean flags are set to only use 1 bit each */
int mutex_ready : 1;
int mutex_in_use : 1;
int cb_list_dirty : 1;
int mutex_ready;
int mutex_in_use;
int cb_list_dirty;

/* HIDAPI unique callback handle counter */
hid_hotplug_callback_handle next_handle;
Expand Down
6 changes: 3 additions & 3 deletions mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ static struct hid_hotplug_context {
pthread_mutex_t mutex;

/* Boolean flags are set to only use 1 bit each */
int mutex_ready : 1;
int mutex_in_use : 1;
int cb_list_dirty : 1;
int mutex_ready;
int mutex_in_use;
int cb_list_dirty;

/* Linked list of the hotplug callbacks */
struct hid_hotplug_callback *hotplug_cbs;
Expand Down
8 changes: 4 additions & 4 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ static struct hid_hotplug_context {
/* Critical section (faster mutex substitute), for both cached device list and callback list changes */
CRITICAL_SECTION critical_section;

/* Boolean flags are set to only use 1 bit each */
BOOL mutex_ready : 1;
BOOL mutex_in_use : 1;
BOOL cb_list_dirty : 1;
/* Boolean flags */
BOOL mutex_ready;
BOOL mutex_in_use;
BOOL cb_list_dirty;

/* HIDAPI unique callback handle counter */
hid_hotplug_callback_handle next_handle;
Expand Down

0 comments on commit 659db59

Please sign in to comment.