aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2020-01-16 07:16:01 +0000
committerAndy Green <andy@warmcat.com>2020-01-17 07:45:34 +0000
commit774240f73bd9217b27da780b55e7ab684d9532a6 (patch)
treef6ff907c10202690c5f7289201ace4d5e3a33004 /lib/roles/h1
parent09ba5c67893a9871fb07a2cf222e9753992855fe (diff)
downloadlibwebsockets-774240f73bd9217b27da780b55e7ab684d9532a6.tar.gz
linkit: support build using public sdk
This provides support to build lws using the linkit 7697 public SDK from here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/downloads This toolchain has some challenges, its int32_t / uint32_t are long, so assumptions about format strings for those being %u / %d / %x all break. This fixes all the cases for the features enabled by the default cmake settings.
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index 3eac468c..3a93cebf 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -628,7 +628,7 @@ rops_handle_POLLIN_h1(struct lws_context_per_thread *pt, struct lws *wsi,
int n;
lwsl_debug("%s: %p: wsistate 0x%x\n", __func__, wsi,
- wsi->wsistate);
+ (int)wsi->wsistate);
n = lws_h1_server_socket_service(wsi, pollfd);
if (n != LWS_HPI_RET_HANDLED)
return n;