From 4a6182bf8d7abdc69d13784c5fa6f1438970d26b Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 8 Jun 2020 22:53:58 +0200 Subject: Remove trailing whitespace errors from all files --- include/usbmuxd.h | 2 +- src/libusbmuxd.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/usbmuxd.h b/include/usbmuxd.h index cf9a1e2..f08a653 100644 --- a/include/usbmuxd.h +++ b/include/usbmuxd.h @@ -166,7 +166,7 @@ int usbmuxd_device_list_free(usbmuxd_device_info_t **device_list); * * @param udid A device UDID of the device to look for. If udid is NULL, * This function will return the first device found. - * @param device Pointer to a previously allocated (or static) + * @param device Pointer to a previously allocated (or static) * usbmuxd_device_info_t that will be filled with the device info. * * @return 0 if no matching device is connected, 1 if the device was found, diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 4706343..d0cccd1 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -807,7 +807,7 @@ static int send_pair_record_packet(int sfd, uint32_t tag, const char* msgtype, c if (device_id > 0) { plist_dict_set_item(plist, "DeviceID", plist_new_uint(device_id)); } - + res = send_plist_packet(sfd, tag, plist); plist_free(plist); @@ -939,9 +939,9 @@ static int usbmuxd_listen_inotify() /* check that it's ours */ if (pevent->mask & IN_CREATE && - pevent->len && - pevent->name[0] != 0 && - strcmp(pevent->name, USBMUXD_SOCKET_NAME) == 0) { + pevent->len && + pevent->name[0] != 0 && + strcmp(pevent->name, USBMUXD_SOCKET_NAME) == 0) { /* retry if usbmuxd isn't ready yet */ int retry = 10; while (--retry >= 0) { @@ -1112,7 +1112,7 @@ static void *device_monitor(void *data) while (running) { int res = get_next_event(listenfd); if (res < 0) { - break; + break; } } @@ -1570,7 +1570,7 @@ USBMUXD_API int usbmuxd_send(int sfd, const char *data, uint32_t len, uint32_t * if (sfd < 0) { return -EINVAL; } - + num_sent = socket_send(sfd, (void*)data, len); if (num_sent < 0) { *sent_bytes = 0; -- cgit v1.1-32-gdbae