Skip to content

Commit

Permalink
Warning in sws.c fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information
sustrik committed Nov 27, 2014
1 parent fdabf7f commit 1017b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transports/ws/sws.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ static int nn_sws_fail_conn (struct nn_sws *self, int code, char *reason)
nn_assert (0);
}

payload_pos = &self->fail_msg [self->fail_msg_len];
payload_pos = (uint8_t*) (&self->fail_msg [self->fail_msg_len]);

/* Copy Status Code in network order (big-endian). */
nn_puts (payload_pos, (uint16_t) code);
Expand Down

0 comments on commit 1017b0f

Please sign in to comment.