added some type castings and changed the type of two variables for iteration

This commit is contained in:
hyung-hwan 2018-07-01 13:17:42 +00:00
parent b4463e8b84
commit 4280387771
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);