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

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

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