summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-08 22:53:58 +0200
committerGravatar Martin Szulecki2020-06-08 22:53:58 +0200
commit4a6182bf8d7abdc69d13784c5fa6f1438970d26b (patch)
treeb8a1f36e57b43095df4fd1eb77c926f0ea93bd51
parentd719a3647886499fad490d9453637e0762707bc1 (diff)
downloadlibusbmuxd-4a6182bf8d7abdc69d13784c5fa6f1438970d26b.tar.gz
libusbmuxd-4a6182bf8d7abdc69d13784c5fa6f1438970d26b.tar.bz2
Remove trailing whitespace errors from all files
-rw-r--r--include/usbmuxd.h2
-rw-r--r--src/libusbmuxd.c12
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;