Skip to content

Commit

Permalink
Remove cast to the same type
Browse files Browse the repository at this point in the history
[clang-tidy] Found with google-readability-casting

Signed-off-by: Rosen Penev rosenp@gmail.com
  • Loading branch information
neheb authored and nikias committed Dec 30, 2020
1 parent 22988d8 commit f48ffb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libusbmuxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ USBMUXD_API int usbmuxd_connect(const uint32_t handle, const unsigned short port
}

tag = ++use_tag;
if (send_connect_packet(sfd, tag, (uint32_t)handle, (uint16_t)port) <= 0) {
if (send_connect_packet(sfd, tag, handle, (uint16_t)port) <= 0) {
LIBUSBMUXD_DEBUG(1, "%s: Error sending connect message!\n", __func__);
} else {
// read ACK
Expand Down

0 comments on commit f48ffb1

Please sign in to comment.