summaryrefslogtreecommitdiffstats
path: root/src/afc.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-28 01:27:59 +0100
committerGravatar Martin Szulecki2015-01-28 01:27:59 +0100
commit24ce2e27b47d3ad460680e02514f5bdbd4628724 (patch)
treeff174ebb7deab82d1f9c031d147e47e01bf47d3a /src/afc.c
parentc9d8013c1a6d69ef8b6024166629413e481e185d (diff)
downloadlibimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.gz
libimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.bz2
Remove trailing whitespace errors from all files
Diffstat (limited to 'src/afc.c')
-rw-r--r--src/afc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/afc.c b/src/afc.c
index d6890e4..d83b50d 100644
--- a/src/afc.c
+++ b/src/afc.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * afc.c 2 * afc.c
3 * Contains functions for the built-in AFC client. 3 * Contains functions for the built-in AFC client.
4 * 4 *
5 * Copyright (c) 2014 Martin Szulecki All Rights Reserved. 5 * Copyright (c) 2014 Martin Szulecki All Rights Reserved.
6 * Copyright (c) 2009-2014 Nikias Bassen. All Rights Reserved. 6 * Copyright (c) 2009-2014 Nikias Bassen. All Rights Reserved.
7 * Copyright (c) 2008 Zach C. All Rights Reserved. 7 * Copyright (c) 2008 Zach C. All Rights Reserved.
@@ -10,15 +10,15 @@
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version. 12 * version 2.1 of the License, or (at your option) any later version.
13 * 13 *
14 * This library is distributed in the hope that it will be useful, 14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details. 17 * Lesser General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Lesser General Public 19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software 20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H 24#ifdef HAVE_CONFIG_H
@@ -36,7 +36,7 @@
36 36
37/** 37/**
38 * Locks an AFC client, done for thread safety stuff 38 * Locks an AFC client, done for thread safety stuff
39 * 39 *
40 * @param client The AFC client connection to lock 40 * @param client The AFC client connection to lock
41 */ 41 */
42static void afc_lock(afc_client_t client) 42static void afc_lock(afc_client_t client)
@@ -47,8 +47,8 @@ static void afc_lock(afc_client_t client)
47 47
48/** 48/**
49 * Unlocks an AFC client, done for thread safety stuff. 49 * Unlocks an AFC client, done for thread safety stuff.
50 * 50 *
51 * @param client The AFC 51 * @param client The AFC
52 */ 52 */
53static void afc_unlock(afc_client_t client) 53static void afc_unlock(afc_client_t client)
54{ 54{
@@ -63,7 +63,7 @@ static void afc_unlock(afc_client_t client)
63 * @param service_client A connected service client 63 * @param service_client A connected service client
64 * @param client Pointer that will be set to a newly allocated afc_client_t 64 * @param client Pointer that will be set to a newly allocated afc_client_t
65 * upon successful return. 65 * upon successful return.
66 * 66 *
67 * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if connection is 67 * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if connection is
68 * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. 68 * invalid, or AFC_E_NO_MEM if there is a memory allocation problem.
69 */ 69 */
@@ -139,7 +139,7 @@ LIBIMOBILEDEVICE_API afc_error_t afc_client_free(afc_client_t client)
139 139
140/** 140/**
141 * Dispatches an AFC packet over a client. 141 * Dispatches an AFC packet over a client.
142 * 142 *
143 * @param client The client to send data through. 143 * @param client The client to send data through.
144 * @param operation The operation to perform. 144 * @param operation The operation to perform.
145 * @param data The data to send together with the header. 145 * @param data The data to send together with the header.
@@ -211,11 +211,11 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, uint64_t operation,
211 211
212/** 212/**
213 * Receives data through an AFC client and sets a variable to the received data. 213 * Receives data through an AFC client and sets a variable to the received data.
214 * 214 *
215 * @param client The client to receive data on. 215 * @param client The client to receive data on.
216 * @param bytes The char* to point to the newly-received data. 216 * @param bytes The char* to point to the newly-received data.
217 * @param bytes_recv How much data was received. 217 * @param bytes_recv How much data was received.
218 * 218 *
219 * @return AFC_E_SUCCESS on success or an AFC_E_* error value. 219 * @return AFC_E_SUCCESS on success or an AFC_E_* error value.
220 */ 220 */
221static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t *bytes_recv) 221static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t *bytes_recv)