diff options
| author | 2014-03-24 14:42:58 +0100 | |
|---|---|---|
| committer | 2014-03-24 14:42:58 +0100 | |
| commit | 7113b03af0c99f7e22970955d09ad19a4af782b5 (patch) | |
| tree | e5286a0c303008ba5802fb313948fb8ce9d3fc34 | |
| parent | 38c4beb0d568dd54c70a4fdb6dadf77ee3ec58dc (diff) | |
| download | libimobiledevice-7113b03af0c99f7e22970955d09ad19a4af782b5.tar.gz libimobiledevice-7113b03af0c99f7e22970955d09ad19a4af782b5.tar.bz2 | |
idevicebackup2: add cast to silence compiler warning
| -rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index b5bbd57..e67a6e6 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -702,7 +702,7 @@ static int mb2_handle_send_file(mobilebackup2_client_t mobilebackup2, const char | |||
| 702 | 702 | ||
| 703 | sent = 0; | 703 | sent = 0; |
| 704 | do { | 704 | do { |
| 705 | length = ((total-sent) < sizeof(buf)) ? (uint32_t)total-sent : (uint32_t)sizeof(buf); | 705 | length = ((total-sent) < (long long)sizeof(buf)) ? (uint32_t)total-sent : (uint32_t)sizeof(buf); |
| 706 | /* send data size (file size + 1) */ | 706 | /* send data size (file size + 1) */ |
| 707 | nlen = htobe32(length+1); | 707 | nlen = htobe32(length+1); |
| 708 | memcpy(buf, &nlen, sizeof(nlen)); | 708 | memcpy(buf, &nlen, sizeof(nlen)); |
