Skip to content

Commit

Permalink
Bit fields converted
Browse files Browse the repository at this point in the history
  • Loading branch information
k1-801 committed Jul 9, 2024
1 parent fa75160 commit c66be35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 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 */
unsigned char mutex_ready : 1;
unsigned char mutex_in_use : 1;
unsigned char cb_list_dirty : 1;
unsigned char mutex_ready;
unsigned char mutex_in_use;
unsigned char 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 */
unsigned char mutex_ready : 1;
unsigned char mutex_in_use : 1;
unsigned char cb_list_dirty : 1;
unsigned char mutex_ready;
unsigned char mutex_in_use;
unsigned char 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 */
unsigned char mutex_ready : 1;
unsigned char mutex_in_use : 1;
unsigned char cb_list_dirty : 1;
unsigned char mutex_ready;
unsigned char mutex_in_use;
unsigned char cb_list_dirty;

/* Linked list of the hotplug callbacks */
struct hid_hotplug_callback *hotplug_cbs;
Expand Down
6 changes: 3 additions & 3 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ static struct hid_hotplug_context {
CRITICAL_SECTION critical_section;

/* Boolean flags */
unsigned char mutex_ready : 1;
unsigned char mutex_in_use : 1;
unsigned char cb_list_dirty : 1;
unsigned char mutex_ready;
unsigned char mutex_in_use;
unsigned char cb_list_dirty;

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

0 comments on commit c66be35

Please sign in to comment.