aboutsummaryrefslogtreecommitdiff
path: root/src/iperf_server_api.c
diff options
context:
space:
mode:
authorJef Poskanzer <jef@mail.acme.com>2013-08-16 13:19:42 -0700
committerJef Poskanzer <jef@mail.acme.com>2013-08-16 13:19:42 -0700
commit019434022c789b12c17e75e00bfbaba3ecb19a2c (patch)
tree2f1bb35a4096379e4d8762f9faeb6fc35d259a01 /src/iperf_server_api.c
parentcb6347fba92c1f082aedc99d7c4f9ef19af2b52d (diff)
downloadiperf3-019434022c789b12c17e75e00bfbaba3ecb19a2c.tar.gz
test->state needs to be explicitly signed char to accomodate a couple
of error states which are negative. On most systems this doesn't matter because char is signed, but on ARM CPUs char is unsigned.
Diffstat (limited to 'src/iperf_server_api.c')
-rw-r--r--src/iperf_server_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iperf_server_api.c b/src/iperf_server_api.c
index 9103937..b86f6a8 100644
--- a/src/iperf_server_api.c
+++ b/src/iperf_server_api.c
@@ -154,7 +154,7 @@ iperf_handle_message_server(struct iperf_test *test)
struct iperf_stream *sp;
// XXX: Need to rethink how this behaves to fit API
- if ((rval = Nread(test->ctrl_sck, &test->state, sizeof(char), Ptcp)) <= 0) {
+ if ((rval = Nread(test->ctrl_sck, (char*) &test->state, sizeof(signed char), Ptcp)) <= 0) {
if (rval == 0) {
iperf_err(test, "the client has unexpectedly closed the connection");
i_errno = IECTRLCLOSE;