summaryrefslogtreecommitdiffstats
path: root/libirecovery.c
diff options
context:
space:
mode:
authorGravatar pod2g2010-12-28 23:04:11 +0100
committerGravatar pod2g2010-12-28 23:04:11 +0100
commit6a561c6230e4132cdc99669fafda6eee59e87bc3 (patch)
treed959f56d9f223cc6a924e685922f725088195917 /libirecovery.c
parentf36be3da06a2175f49ed2b987b684fdf66871b58 (diff)
downloadlibirecovery-6a561c6230e4132cdc99669fafda6eee59e87bc3.tar.gz
libirecovery-6a561c6230e4132cdc99669fafda6eee59e87bc3.tar.bz2
fixed GCC compilation warnings
Diffstat (limited to 'libirecovery.c')
-rw-r--r--libirecovery.c4
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
806irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value) { 806irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value) {
807 int ret = 0; 807 int ret = 0;
808 if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; 808 if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE;
809 *value = NULL; 809 *value = 0;
810 810
811 char* response = (char*) malloc(256); 811 char* response = (char*) malloc(256);
812 if (response == NULL) { 812 if (response == NULL) {
@@ -816,7 +816,7 @@ irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value) {
816 memset(response, '\0', 256); 816 memset(response, '\0', 256);
817 ret = irecv_control_transfer(client, 0xC0, 0, 0, 0, (unsigned char*) response, 255, 1000); 817 ret = irecv_control_transfer(client, 0xC0, 0, 0, 0, (unsigned char*) response, 255, 1000);
818 818
819 *value = response; 819 *value = (unsigned int) *response;
820 return IRECV_E_SUCCESS; 820 return IRECV_E_SUCCESS;
821} 821}
822 822