summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2013-09-25 07:42:07 -0400
committerGravatar Martin Szulecki2013-10-24 14:26:21 +0200
commitb3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99 (patch)
treee65555470d63b4987cdeaaa10d487a4ff71b3ecf /src
parent7138a9cc3abc36b07b75bf41b9559fdaa57dc9f9 (diff)
downloadidevicerestore-b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99.tar.gz
idevicerestore-b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99.tar.bz2
Fixed pass-by-reference inconsistency in asr_send().
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
Diffstat (limited to 'src')
-rw-r--r--src/asr.c2
-rw-r--r--src/asr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/asr.c b/src/asr.c
index e3019e6..20647a6 100644
--- a/src/asr.c
+++ b/src/asr.c
@@ -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;
diff --git a/src/asr.h b/src/asr.h
index bddcbe2..b3336a5 100644
--- a/src/asr.h
+++ b/src/asr.h
@@ -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);