summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-09-24 19:21:53 +0200
committerGravatar Martin Szulecki2015-09-24 19:21:53 +0200
commit235e1b9bc4a3fc848b688daa857d49e953f7c135 (patch)
tree37a110840858e4d20eff9217f61beb4d729104ec /src
parent9a53b8f2bc3c2ac366d208b620d6404e936e2a92 (diff)
downloadidevicerestore-235e1b9bc4a3fc848b688daa857d49e953f7c135.tar.gz
idevicerestore-235e1b9bc4a3fc848b688daa857d49e953f7c135.tar.bz2
Replace () with (void) for proper function prototypes
Diffstat (limited to 'src')
-rw-r--r--src/common.c4
-rw-r--r--src/common.h2
-rw-r--r--src/idevicerestore.c2
-rw-r--r--src/idevicerestore.h4
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);