diff options
| -rw-r--r-- | common/userpref.h | 2 | ||||
| -rw-r--r-- | common/utils.h | 2 | ||||
| -rw-r--r-- | tools/idevicebackup2.c | 2 | ||||
| -rw-r--r-- | tools/idevicename.c | 2 | ||||
| -rw-r--r-- | tools/idevicesyslog.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/common/userpref.h b/common/userpref.h index ce38018..0c70437 100644 --- a/common/userpref.h +++ b/common/userpref.h | |||
| @@ -61,7 +61,7 @@ typedef gnutls_datum_t key_data_t; | |||
| 61 | 61 | ||
| 62 | typedef int16_t userpref_error_t; | 62 | typedef int16_t userpref_error_t; |
| 63 | 63 | ||
| 64 | const char *userpref_get_config_dir(); | 64 | const char *userpref_get_config_dir(void); |
| 65 | int userpref_read_system_buid(char **system_buid); | 65 | int userpref_read_system_buid(char **system_buid); |
| 66 | userpref_error_t userpref_read_pair_record(const char *udid, plist_t *pair_record); | 66 | userpref_error_t userpref_read_pair_record(const char *udid, plist_t *pair_record); |
| 67 | userpref_error_t userpref_save_pair_record(const char *udid, plist_t pair_record); | 67 | userpref_error_t userpref_save_pair_record(const char *udid, plist_t pair_record); |
diff --git a/common/utils.h b/common/utils.h index 97d3748..90cfa4a 100644 --- a/common/utils.h +++ b/common/utils.h | |||
| @@ -40,7 +40,7 @@ char *string_concat(const char *str, ...); | |||
| 40 | char *string_build_path(const char *elem, ...); | 40 | char *string_build_path(const char *elem, ...); |
| 41 | char *string_format_size(uint64_t size); | 41 | char *string_format_size(uint64_t size); |
| 42 | char *string_toupper(char *str); | 42 | char *string_toupper(char *str); |
| 43 | char *generate_uuid(); | 43 | char *generate_uuid(void); |
| 44 | 44 | ||
| 45 | void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length); | 45 | void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length); |
| 46 | void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length); | 46 | void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length); |
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index a43cbda..d223015 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -1038,7 +1038,7 @@ static void mb2_copy_directory_by_path(const char *src, const char *dst) | |||
| 1038 | #define my_getch getch | 1038 | #define my_getch getch |
| 1039 | #else | 1039 | #else |
| 1040 | #define BS_CC 0x7f | 1040 | #define BS_CC 0x7f |
| 1041 | static int my_getch() | 1041 | static int my_getch(void) |
| 1042 | { | 1042 | { |
| 1043 | struct termios oldt, newt; | 1043 | struct termios oldt, newt; |
| 1044 | int ch; | 1044 | int ch; |
diff --git a/tools/idevicename.c b/tools/idevicename.c index c013edc..d94657b 100644 --- a/tools/idevicename.c +++ b/tools/idevicename.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | #include <libimobiledevice/libimobiledevice.h> | 28 | #include <libimobiledevice/libimobiledevice.h> |
| 29 | #include <libimobiledevice/lockdown.h> | 29 | #include <libimobiledevice/lockdown.h> |
| 30 | 30 | ||
| 31 | static void print_usage() | 31 | static void print_usage(void) |
| 32 | { | 32 | { |
| 33 | printf("Usage: idevicename [OPTIONS] [NAME]\n"); | 33 | printf("Usage: idevicename [OPTIONS] [NAME]\n"); |
| 34 | printf("Display the device name or set it to NAME if specified.\n"); | 34 | printf("Display the device name or set it to NAME if specified.\n"); |
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 52a4174..7aa6126 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -48,7 +48,7 @@ static void syslog_callback(char c, void *user_data) | |||
| 48 | putchar(c); | 48 | putchar(c); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | static int start_logging() | 51 | static int start_logging(void) |
| 52 | { | 52 | { |
| 53 | idevice_error_t ret = idevice_new(&device, udid); | 53 | idevice_error_t ret = idevice_new(&device, udid); |
| 54 | if (ret != IDEVICE_E_SUCCESS) { | 54 | if (ret != IDEVICE_E_SUCCESS) { |
| @@ -83,7 +83,7 @@ static int start_logging() | |||
| 83 | return 0; | 83 | return 0; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | static void stop_logging() | 86 | static void stop_logging(void) |
| 87 | { | 87 | { |
| 88 | fflush(stdout); | 88 | fflush(stdout); |
| 89 | 89 | ||
