summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2014-12-06 21:52:51 +0100
committerGravatar Christophe Fergeau2014-12-06 21:52:51 +0100
commit03c8f4fa8a41c11702ce10ce79c2a591f297c63e (patch)
treead991c178a36c6fcb4ef1b72050bcad2b1bd46d8 /include/libimobiledevice
parent53eb963f8e6d607cca6b50381c10820a5e8357f4 (diff)
downloadlibimobiledevice-03c8f4fa8a41c11702ce10ce79c2a591f297c63e.tar.gz
libimobiledevice-03c8f4fa8a41c11702ce10ce79c2a591f297c63e.tar.bz2
Replace () with (void) in function prototypes
() and (void) are 2 different things in C, and can cause gcc warnings: error: function declaration isn't a prototype [-Werror=strict-prototypes] idevice_error_t idevice_event_unsubscribe(); This commit replaces () with (void) in installed headers.
Diffstat (limited to 'include/libimobiledevice')
-rw-r--r--include/libimobiledevice/installation_proxy.h2
-rw-r--r--include/libimobiledevice/libimobiledevice.h2
-rw-r--r--include/libimobiledevice/mobilesync.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/libimobiledevice/installation_proxy.h b/include/libimobiledevice/installation_proxy.h
index f76ee68..67307e2 100644
--- a/include/libimobiledevice/installation_proxy.h
+++ b/include/libimobiledevice/installation_proxy.h
@@ -279,7 +279,7 @@ instproxy_error_t instproxy_remove_archive(instproxy_client_t client, const char
279 * 279 *
280 * @return A new plist_t of type PLIST_DICT. 280 * @return A new plist_t of type PLIST_DICT.
281 */ 281 */
282plist_t instproxy_client_options_new(); 282plist_t instproxy_client_options_new(void);
283 283
284/** 284/**
285 * Add one or more new key:value pairs to the given client_options. 285 * Add one or more new key:value pairs to the given client_options.
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h
index b7a20d8..8705fc8 100644
--- a/include/libimobiledevice/libimobiledevice.h
+++ b/include/libimobiledevice/libimobiledevice.h
@@ -95,7 +95,7 @@ idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_
95 * 95 *
96 * @return IDEVICE_E_SUCCESS on success or an error value when an error occured. 96 * @return IDEVICE_E_SUCCESS on success or an error value when an error occured.
97 */ 97 */
98idevice_error_t idevice_event_unsubscribe(); 98idevice_error_t idevice_event_unsubscribe(void);
99 99
100/* discovery (synchronous) */ 100/* discovery (synchronous) */
101 101
diff --git a/include/libimobiledevice/mobilesync.h b/include/libimobiledevice/mobilesync.h
index 3c0d576..b01e431 100644
--- a/include/libimobiledevice/mobilesync.h
+++ b/include/libimobiledevice/mobilesync.h
@@ -321,7 +321,7 @@ void mobilesync_anchors_free(mobilesync_anchors_t anchors);
321 * 321 *
322 * @return A new plist_t of type PLIST_DICT. 322 * @return A new plist_t of type PLIST_DICT.
323 */ 323 */
324plist_t mobilesync_actions_new(); 324plist_t mobilesync_actions_new(void);
325 325
326/** 326/**
327 * Add one or more new key:value pairs to the given actions plist. 327 * Add one or more new key:value pairs to the given actions plist.