summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-10-03 02:16:27 +0200
committerGravatar Nikias Bassen2014-10-03 02:16:27 +0200
commite14706203e2408b49dae01f2eeb693f97891307a (patch)
tree49c5c29c9a5c92cd7276ce1c40e06df79ff3993e /tools
parentddede7522083c0772d4b78a0d0a394949e981b22 (diff)
downloadlibusbmuxd-e14706203e2408b49dae01f2eeb693f97891307a.tar.gz
libusbmuxd-e14706203e2408b49dae01f2eeb693f97891307a.tar.bz2
iproxy: Print correct error message when receiving fails
Diffstat (limited to 'tools')
-rw-r--r--tools/iproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c
index 36d4521..2d32275 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -71,7 +71,7 @@ static void *run_stoc_loop(void *arg)
// try again
continue;
} else {
- fprintf(stderr, "recv failed: %s\n", strerror(errno));
+ fprintf(stderr, "recv failed: %s\n", strerror(-recv_len));
break;
}
} else {
@@ -124,7 +124,7 @@ static void *run_ctos_loop(void *arg)
// try again
continue;
} else {
- fprintf(stderr, "recv failed: %s\n", strerror(errno));
+ fprintf(stderr, "recv failed: %s\n", strerror(-recv_len));
break;
}
} else {