diff --git a/lib/hcl-s.c b/lib/hcl-s.c index 663cb88..4f740f4 100644 --- a/lib/hcl-s.c +++ b/lib/hcl-s.c @@ -2051,7 +2051,7 @@ void hcl_server_close (hcl_server_t* server) static HCL_INLINE int prepare_to_acquire_wid (hcl_server_t* server) { hcl_oow_t new_capa; - hcl_ooi_t i, j; + hcl_oow_t i, j; hcl_server_wid_map_data_t* tmp; HCL_ASSERT (server->dummy_hcl, server->wid_map.free_first == HCL_SERVER_WID_INVALID); diff --git a/lib/main.c b/lib/main.c index 9b9c83e..21b300b 100644 --- a/lib/main.c +++ b/lib/main.c @@ -564,7 +564,7 @@ static int write_log (hcl_t* hcl, int fd, const hcl_bch_t* ptr, hcl_oow_t len) { xtn_t* xtn; - xtn = hcl_getxtn(hcl); + xtn = (xtn_t*)hcl_getxtn(hcl); while (len > 0) { @@ -616,7 +616,7 @@ static int write_log (hcl_t* hcl, int fd, const hcl_bch_t* ptr, hcl_oow_t len) static void flush_log (hcl_t* hcl, int fd) { xtn_t* xtn; - xtn = hcl_getxtn(hcl); + xtn = (xtn_t*)hcl_getxtn(hcl); if (xtn->logbuf.len > 0) { write_all (fd, xtn->logbuf.buf, xtn->logbuf.len);