diff options
-rw-r--r-- | src/afc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1009,7 +1009,6 @@ LIBIMOBILEDEVICE_API afc_error_t afc_make_link(afc_client_t client, afc_link_typ | |||
1009 | return AFC_E_INVALID_ARG; | 1009 | return AFC_E_INVALID_ARG; |
1010 | 1010 | ||
1011 | uint32_t bytes = 0; | 1011 | uint32_t bytes = 0; |
1012 | uint64_t type = htole64(linktype); | ||
1013 | afc_error_t ret = AFC_E_UNKNOWN_ERROR; | 1012 | afc_error_t ret = AFC_E_UNKNOWN_ERROR; |
1014 | 1013 | ||
1015 | size_t target_len = strlen(target); | 1014 | size_t target_len = strlen(target); |
@@ -1024,7 +1023,7 @@ LIBIMOBILEDEVICE_API afc_error_t afc_make_link(afc_client_t client, afc_link_typ | |||
1024 | return AFC_E_NO_MEM; | 1023 | return AFC_E_NO_MEM; |
1025 | } | 1024 | } |
1026 | 1025 | ||
1027 | debug_info("link type: %lld", type); | 1026 | debug_info("link type: %lld", htole64(linktype)); |
1028 | debug_info("target: %s, length:%d", target, target_len); | 1027 | debug_info("target: %s, length:%d", target, target_len); |
1029 | debug_info("linkname: %s, length:%d", linkname, link_len); | 1028 | debug_info("linkname: %s, length:%d", linkname, link_len); |
1030 | 1029 | ||