diff options
author | Nikias Bassen | 2014-10-03 02:16:27 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-10-03 02:16:27 +0200 |
commit | e14706203e2408b49dae01f2eeb693f97891307a (patch) | |
tree | 49c5c29c9a5c92cd7276ce1c40e06df79ff3993e /tools/iproxy.c | |
parent | ddede7522083c0772d4b78a0d0a394949e981b22 (diff) | |
download | libusbmuxd-e14706203e2408b49dae01f2eeb693f97891307a.tar.gz libusbmuxd-e14706203e2408b49dae01f2eeb693f97891307a.tar.bz2 |
iproxy: Print correct error message when receiving fails
Diffstat (limited to 'tools/iproxy.c')
-rw-r--r-- | tools/iproxy.c | 4 |
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 { |