summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2008-12-29 12:35:51 +0100
committerGravatar Matt Colyer2009-01-02 09:55:08 -0800
commitd77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9 (patch)
tree6ef70292982a499e36d4e14c529436f889e42be1 /src/usbmux.c
parent0efa3bc3a3519695f288211d720620cc0672f054 (diff)
downloadlibimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.gz
libimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.bz2
Fix function prototypes
Add missing static, const, change function() to function(void)
Diffstat (limited to 'src/usbmux.c')
-rw-r--r--src/usbmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usbmux.c b/src/usbmux.c
index 4512dad..770d0db 100644
--- a/src/usbmux.c
+++ b/src/usbmux.c
@@ -58,7 +58,7 @@ usbmux_tcp_header *new_mux_packet(uint16 s_port, uint16 d_port)
58 * 58 *
59 * @return A USBMux header 59 * @return A USBMux header
60 */ 60 */
61usbmux_version_header *version_header() 61usbmux_version_header *version_header(void)
62{ 62{
63 usbmux_version_header *version = (usbmux_version_header *) malloc(sizeof(usbmux_version_header)); 63 usbmux_version_header *version = (usbmux_version_header *) malloc(sizeof(usbmux_version_header));
64 version->type = 0; 64 version->type = 0;
@@ -77,7 +77,7 @@ usbmux_version_header *version_header()
77 * 77 *
78 * @param connection The connection to delete from the tracking list. 78 * @param connection The connection to delete from the tracking list.
79 */ 79 */
80void delete_connection(iphone_umux_client_t connection) 80static void delete_connection(iphone_umux_client_t connection)
81{ 81{
82 iphone_umux_client_t *newlist = (iphone_umux_client_t *) malloc(sizeof(iphone_umux_client_t) * (clients - 1)); 82 iphone_umux_client_t *newlist = (iphone_umux_client_t *) malloc(sizeof(iphone_umux_client_t) * (clients - 1));
83 int i = 0, j = 0; 83 int i = 0, j = 0;
@@ -106,7 +106,7 @@ void delete_connection(iphone_umux_client_t connection)
106 * @param connection The connection to add to the global list of connections. 106 * @param connection The connection to add to the global list of connections.
107 */ 107 */
108 108
109void add_connection(iphone_umux_client_t connection) 109static void add_connection(iphone_umux_client_t connection)
110{ 110{
111 iphone_umux_client_t *newlist = 111 iphone_umux_client_t *newlist =
112 (iphone_umux_client_t *) realloc(connlist, sizeof(iphone_umux_client_t) * (clients + 1)); 112 (iphone_umux_client_t *) realloc(connlist, sizeof(iphone_umux_client_t) * (clients + 1));