added some type castings and changed the type of two variables for iteration
This commit is contained in:
parent
b4463e8b84
commit
4280387771
@ -2051,7 +2051,7 @@ void hcl_server_close (hcl_server_t* server)
|
|||||||
static HCL_INLINE int prepare_to_acquire_wid (hcl_server_t* server)
|
static HCL_INLINE int prepare_to_acquire_wid (hcl_server_t* server)
|
||||||
{
|
{
|
||||||
hcl_oow_t new_capa;
|
hcl_oow_t new_capa;
|
||||||
hcl_ooi_t i, j;
|
hcl_oow_t i, j;
|
||||||
hcl_server_wid_map_data_t* tmp;
|
hcl_server_wid_map_data_t* tmp;
|
||||||
|
|
||||||
HCL_ASSERT (server->dummy_hcl, server->wid_map.free_first == HCL_SERVER_WID_INVALID);
|
HCL_ASSERT (server->dummy_hcl, server->wid_map.free_first == HCL_SERVER_WID_INVALID);
|
||||||
|
@ -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_t* xtn;
|
||||||
|
|
||||||
xtn = hcl_getxtn(hcl);
|
xtn = (xtn_t*)hcl_getxtn(hcl);
|
||||||
|
|
||||||
while (len > 0)
|
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)
|
static void flush_log (hcl_t* hcl, int fd)
|
||||||
{
|
{
|
||||||
xtn_t* xtn;
|
xtn_t* xtn;
|
||||||
xtn = hcl_getxtn(hcl);
|
xtn = (xtn_t*)hcl_getxtn(hcl);
|
||||||
if (xtn->logbuf.len > 0)
|
if (xtn->logbuf.len > 0)
|
||||||
{
|
{
|
||||||
write_all (fd, xtn->logbuf.buf, xtn->logbuf.len);
|
write_all (fd, xtn->logbuf.buf, xtn->logbuf.len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user