diff options
| author | 2020-07-06 16:08:27 +0200 | |
|---|---|---|
| committer | 2020-07-06 16:08:27 +0200 | |
| commit | 6e965298e439d52f8c96ccc98edb488891807c7d (patch) | |
| tree | 13583c6d924097d1ee8e648a7d864ea822927a8c /src/libirecovery.c | |
| parent | ce1d31fe7766f215fecdf4e2b3919efd1834c581 (diff) | |
| download | libirecovery-6e965298e439d52f8c96ccc98edb488891807c7d.tar.gz libirecovery-6e965298e439d52f8c96ccc98edb488891807c7d.tar.bz2 | |
Fix compiler warning about format string specifiers by using uint64_t instead of unsinged long long
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index d36234f..cf73465 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -662,9 +662,9 @@ typedef struct usb_control_request { | |||
| 662 | 662 | ||
| 663 | irecv_error_t mobiledevice_openpipes(irecv_client_t client); | 663 | irecv_error_t mobiledevice_openpipes(irecv_client_t client); |
| 664 | void mobiledevice_closepipes(irecv_client_t client); | 664 | void mobiledevice_closepipes(irecv_client_t client); |
| 665 | irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ecid); | 665 | irecv_error_t mobiledevice_connect(irecv_client_t* client, uint64_t ecid); |
| 666 | 666 | ||
| 667 | irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ecid) { | 667 | irecv_error_t mobiledevice_connect(irecv_client_t* client, uint64_t ecid) { |
| 668 | int found = 0; | 668 | int found = 0; |
| 669 | SP_DEVICE_INTERFACE_DATA currentInterface; | 669 | SP_DEVICE_INTERFACE_DATA currentInterface; |
| 670 | HDEVINFO usbDevices; | 670 | HDEVINFO usbDevices; |
| @@ -1214,7 +1214,7 @@ static io_iterator_t iokit_usb_get_iterator_for_pid(UInt16 pid) { | |||
| 1214 | return iterator; | 1214 | return iterator; |
| 1215 | } | 1215 | } |
| 1216 | 1216 | ||
| 1217 | static irecv_error_t iokit_open_with_ecid(irecv_client_t* pclient, unsigned long long ecid) { | 1217 | static irecv_error_t iokit_open_with_ecid(irecv_client_t* pclient, uint64_t ecid) { |
| 1218 | 1218 | ||
| 1219 | io_service_t service, ret_service; | 1219 | io_service_t service, ret_service; |
| 1220 | io_iterator_t iterator; | 1220 | io_iterator_t iterator; |
| @@ -1292,7 +1292,7 @@ static irecv_error_t iokit_open_with_ecid(irecv_client_t* pclient, unsigned long | |||
| 1292 | #endif | 1292 | #endif |
| 1293 | #endif | 1293 | #endif |
| 1294 | 1294 | ||
| 1295 | IRECV_API irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, unsigned long long ecid) { | 1295 | IRECV_API irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, uint64_t ecid) { |
| 1296 | #ifdef USE_DUMMY | 1296 | #ifdef USE_DUMMY |
| 1297 | return IRECV_E_UNSUPPORTED; | 1297 | return IRECV_E_UNSUPPORTED; |
| 1298 | #else | 1298 | #else |
| @@ -1629,7 +1629,7 @@ IRECV_API irecv_error_t irecv_reset(irecv_client_t client) { | |||
| 1629 | #endif | 1629 | #endif |
| 1630 | } | 1630 | } |
| 1631 | 1631 | ||
| 1632 | IRECV_API irecv_error_t irecv_open_with_ecid_and_attempts(irecv_client_t* pclient, unsigned long long ecid, int attempts) { | 1632 | IRECV_API irecv_error_t irecv_open_with_ecid_and_attempts(irecv_client_t* pclient, uint64_t ecid, int attempts) { |
| 1633 | #ifdef USE_DUMMY | 1633 | #ifdef USE_DUMMY |
| 1634 | return IRECV_E_UNSUPPORTED; | 1634 | return IRECV_E_UNSUPPORTED; |
| 1635 | #else | 1635 | #else |
| @@ -3185,7 +3185,7 @@ IRECV_API irecv_client_t irecv_reconnect(irecv_client_t client, int initial_paus | |||
| 3185 | irecv_event_cb_t postcommand_callback = client->postcommand_callback; | 3185 | irecv_event_cb_t postcommand_callback = client->postcommand_callback; |
| 3186 | irecv_event_cb_t disconnected_callback = client->disconnected_callback; | 3186 | irecv_event_cb_t disconnected_callback = client->disconnected_callback; |
| 3187 | 3187 | ||
| 3188 | unsigned long long ecid = client->device_info.ecid; | 3188 | uint64_t ecid = client->device_info.ecid; |
| 3189 | 3189 | ||
| 3190 | if (check_context(client) == IRECV_E_SUCCESS) { | 3190 | if (check_context(client) == IRECV_E_SUCCESS) { |
| 3191 | irecv_close(client); | 3191 | irecv_close(client); |
