mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Fix indentation issues with uncrustify-0.76.0
Apparently older version didn't find this indentation issues
This commit is contained in:
@@ -157,7 +157,7 @@ vfs301_proto_generate_0B (int subtype, gssize *len)
|
||||
}
|
||||
|
||||
#define HEX_TO_INT(c) \
|
||||
(((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'A' + 10))
|
||||
(((c) >= '0' && (c) <= '9') ? ((c) - '0') : ((c) - 'A' + 10))
|
||||
|
||||
static guint8 *
|
||||
translate_str (const char **srcL, gssize *len)
|
||||
@@ -422,15 +422,15 @@ img_process_data (int first_block, FpDeviceVfs301 *dev, const guint8 *buf, int l
|
||||
/************************** PROTOCOL STUFF ************************************/
|
||||
|
||||
#define USB_RECV(from, len) \
|
||||
usb_recv (dev, from, len, NULL, NULL)
|
||||
usb_recv (dev, from, len, NULL, NULL)
|
||||
|
||||
#define USB_SEND(type, subtype) \
|
||||
{ \
|
||||
const guint8 *data; \
|
||||
gssize len; \
|
||||
data = vfs301_proto_generate (type, subtype, &len); \
|
||||
usb_send (dev, data, len, NULL); \
|
||||
}
|
||||
{ \
|
||||
const guint8 *data; \
|
||||
gssize len; \
|
||||
data = vfs301_proto_generate (type, subtype, &len); \
|
||||
usb_send (dev, data, len, NULL); \
|
||||
}
|
||||
|
||||
#define RAW_DATA(x) g_memdup2 (x, sizeof (x)), sizeof (x)
|
||||
|
||||
@@ -489,13 +489,13 @@ vfs301_proto_peek_event (FpDeviceVfs301 *dev)
|
||||
* we will run into timeouts randomly and need to then try again.
|
||||
*/
|
||||
#define PARALLEL_RECEIVE(e1, l1, e2, l2) \
|
||||
{ \
|
||||
g_autoptr(GError) error = NULL; \
|
||||
usb_recv (dev, e1, l1, NULL, &error); \
|
||||
usb_recv (dev, e2, l2, NULL, NULL); \
|
||||
if (g_error_matches (error, G_USB_DEVICE_ERROR, G_USB_DEVICE_ERROR_TIMED_OUT)) \
|
||||
usb_recv (dev, e1, l1, NULL, NULL); \
|
||||
}
|
||||
{ \
|
||||
g_autoptr(GError) error = NULL; \
|
||||
usb_recv (dev, e1, l1, NULL, &error); \
|
||||
usb_recv (dev, e2, l2, NULL, NULL); \
|
||||
if (g_error_matches (error, G_USB_DEVICE_ERROR, G_USB_DEVICE_ERROR_TIMED_OUT)) \
|
||||
usb_recv (dev, e1, l1, NULL, NULL); \
|
||||
}
|
||||
|
||||
static void
|
||||
vfs301_proto_process_event_cb (FpiUsbTransfer *transfer,
|
||||
|
||||
Reference in New Issue
Block a user