From b3cfe4e5dcec24bf86e2143d1e82e1ca37cd8c99 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Wed, 25 Sep 2013 07:42:07 -0400 Subject: Fixed pass-by-reference inconsistency in asr_send(). Signed-off-by: Martin Szulecki --- src/asr.c | 2 +- src/asr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.1-32-gdbae