aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2019-05-30 08:21:33 +0800
committerAndy Green <andy@warmcat.com>2019-05-30 08:21:33 +0800
commit19049d2f2880ec619082d3424ba63db702b0af62 (patch)
tree76986f8749e7e2c1aa377b66204df2ec90604d99 /lib/roles/h1
parent93c35b97123cfcbce2f104c82dbee2d8cf7bb2e4 (diff)
downloadlibwebsockets-19049d2f2880ec619082d3424ba63db702b0af62.tar.gz
Change some struct members to unsigned char
Enables removal of superfluous casts, and fixes strict-aliasing warnings with GCC 4.1.
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index ad8a0baf..1ce5b621 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -379,10 +379,10 @@ lws_h1_server_socket_service(struct lws *wsi, struct lws_pollfd *pollfd)
*/
#if defined(LWS_ROLE_H2)
if (lwsi_role_h2(wsi) && lwsi_state(wsi) != LRS_BODY)
- n = lws_read_h2(wsi, (uint8_t *)ebuf.token, ebuf.len);
+ n = lws_read_h2(wsi, ebuf.token, ebuf.len);
else
#endif
- n = lws_read_h1(wsi, (uint8_t *)ebuf.token, ebuf.len);
+ n = lws_read_h1(wsi, ebuf.token, ebuf.len);
if (n < 0) /* we closed wsi */
return LWS_HPI_RET_WSI_ALREADY_DIED;