diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 4 | ||||
-rw-r--r-- | src/common.h | 2 | ||||
-rw-r--r-- | src/idevicerestore.c | 2 | ||||
-rw-r--r-- | src/idevicerestore.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/common.c b/src/common.c index b5af690..efc8431 100644 --- a/src/common.c +++ b/src/common.c @@ -118,7 +118,7 @@ void idevicerestore_set_debug_stream(FILE* strm) } } -const char* idevicerestore_get_error() +const char* idevicerestore_get_error(void) { if (idevicerestore_err_buff[0] == 0) { return NULL; @@ -223,7 +223,7 @@ void print_progress_bar(double progress) { #define GET_RAND(min, max) ((rand() % (max - min)) + min) -char *generate_guid() +char *generate_guid(void) { char *guid = (char *) malloc(sizeof(char) * 37); const char *chars = "ABCDEF0123456789"; diff --git a/src/common.h b/src/common.h index 4d6441a..f7c9fd2 100644 --- a/src/common.h +++ b/src/common.h @@ -112,7 +112,7 @@ void print_progress_bar(double progress); int read_file(const char* filename, void** data, size_t* size); int write_file(const char* filename, const void* data, size_t size); -char *generate_guid(); +char *generate_guid(void); #ifdef WIN32 #include <windows.h> diff --git a/src/idevicerestore.c b/src/idevicerestore.c index e9a50dd..36996cd 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -926,7 +926,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) return result; } -struct idevicerestore_client_t* idevicerestore_client_new() +struct idevicerestore_client_t* idevicerestore_client_new(void) { struct idevicerestore_client_t* client = (struct idevicerestore_client_t*) malloc(sizeof(struct idevicerestore_client_t)); if (client == NULL) { diff --git a/src/idevicerestore.h b/src/idevicerestore.h index 3ec34a1..1e2124a 100644 --- a/src/idevicerestore.h +++ b/src/idevicerestore.h @@ -55,7 +55,7 @@ enum { typedef void (*idevicerestore_progress_cb_t)(int step, double step_progress, void* userdata); -struct idevicerestore_client_t* idevicerestore_client_new(); +struct idevicerestore_client_t* idevicerestore_client_new(void); void idevicerestore_client_free(struct idevicerestore_client_t* client); void idevicerestore_set_ecid(struct idevicerestore_client_t* client, unsigned long long ecid); @@ -69,7 +69,7 @@ void idevicerestore_set_error_stream(FILE* strm); void idevicerestore_set_debug_stream(FILE* strm); int idevicerestore_start(struct idevicerestore_client_t* client); -const char* idevicerestore_get_error(); +const char* idevicerestore_get_error(void); void usage(int argc, char* argv[]); int check_mode(struct idevicerestore_client_t* client); |