diff options
author | pod2g | 2010-12-28 23:04:11 +0100 |
---|---|---|
committer | pod2g | 2010-12-28 23:04:11 +0100 |
commit | 6a561c6230e4132cdc99669fafda6eee59e87bc3 (patch) | |
tree | d959f56d9f223cc6a924e685922f725088195917 | |
parent | f36be3da06a2175f49ed2b987b684fdf66871b58 (diff) | |
download | libirecovery-6a561c6230e4132cdc99669fafda6eee59e87bc3.tar.gz libirecovery-6a561c6230e4132cdc99669fafda6eee59e87bc3.tar.bz2 |
fixed GCC compilation warnings
-rw-r--r-- | libirecovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libirecovery.c b/libirecovery.c index 97432b7..c9e5949 100644 --- a/libirecovery.c +++ b/libirecovery.c @@ -806,7 +806,7 @@ irecv_error_t irecv_getenv(irecv_client_t client, const char* variable, char** v irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value) { int ret = 0; if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; - *value = NULL; + *value = 0; char* response = (char*) malloc(256); if (response == NULL) { @@ -816,7 +816,7 @@ irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value) { memset(response, '\0', 256); ret = irecv_control_transfer(client, 0xC0, 0, 0, 0, (unsigned char*) response, 255, 1000); - *value = response; + *value = (unsigned int) *response; return IRECV_E_SUCCESS; } |