diff options
author | Aaron Burghardt | 2013-09-25 07:42:07 -0400 |
---|---|---|
committer | Martin Szulecki | 2013-10-24 14:26:21 +0200 |
commit | b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99 (patch) | |
tree | e65555470d63b4987cdeaaa10d487a4ff71b3ecf | |
parent | 7138a9cc3abc36b07b75bf41b9559fdaa57dc9f9 (diff) | |
download | idevicerestore-b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99.tar.gz idevicerestore-b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99.tar.bz2 |
Fixed pass-by-reference inconsistency in asr_send().
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
-rw-r--r-- | src/asr.c | 2 | ||||
-rw-r--r-- | src/asr.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -148,7 +148,7 @@ int asr_receive(asr_client_t asr, plist_t* data) { return 0; } -int asr_send(asr_client_t asr, plist_t* data) { +int asr_send(asr_client_t asr, plist_t data) { uint32_t size = 0; char* buffer = NULL; @@ -43,7 +43,7 @@ typedef struct asr_client *asr_client_t; int asr_open_with_timeout(idevice_t device, asr_client_t* asr); void asr_set_progress_callback(asr_client_t asr, asr_progress_cb_t, void* userdata); -int asr_send(asr_client_t asr, plist_t* data); +int asr_send(asr_client_t asr, plist_t data); int asr_receive(asr_client_t asr, plist_t* data); int asr_send_buffer(asr_client_t asr, const char* data, uint32_t size); void asr_free(asr_client_t asr); |