touched up some wrong type casting

This commit is contained in:
hyung-hwan 2025-02-11 00:00:59 +09:00
parent 867e8bb63e
commit 523b922be4
3 changed files with 6 additions and 6 deletions

View File

@ -424,7 +424,7 @@ entry:
if (g->flags & HAWK_GLOB_SKIPSPCDIR) dir_flags |= HAWK_DIR_SKIPSPCDIR;
if (HAWK_SIZEOF(hawk_uch_t) == HAWK_SIZEOF(hawk_bch_t)) dir_flags |= HAWK_DIR_BPATH;
dp = hawk_dir_open(g->gem, 0, (const hawk_uch_t*)HAWK_UECS_PTR(&g->path), dir_flags);
dp = hawk_dir_open(g->gem, 0, (const hawk_ooch_t*)HAWK_UECS_PTR(&g->path), dir_flags);
if (dp)
{
tmp = HAWK_UECS_LEN(&g->path);
@ -872,9 +872,9 @@ entry:
{
int dir_flags = 0;
if (g->flags & HAWK_GLOB_SKIPSPCDIR) dir_flags |= HAWK_DIR_SKIPSPCDIR;
if (HAWK_SIZEOF(hawk_bch_t) == HAWK_SIZEOF(hawk_bch_t)) dir_flags |= HAWK_DIR_BPATH;
dir_flags |= HAWK_DIR_BPATH;
dp = hawk_dir_open(g->gem, 0, (const hawk_bch_t*)HAWK_BECS_PTR(&g->path), dir_flags);
dp = hawk_dir_open(g->gem, 0, (const hawk_ooch_t*)HAWK_BECS_PTR(&g->path), dir_flags);
if (dp)
{
tmp = HAWK_BECS_LEN(&g->path);

View File

@ -756,7 +756,7 @@ static void get_moreinfo (int s, hawk_ifcfg_t* cfg, struct ifreq* ifr)
struct ethtool_value ev;
HAWK_MEMSET (&ev, 0, HAWK_SIZEOF(ev));
ev.cmd= ETHTOOL_GLINK;
ifr->ifr_data = &ev;
ifr->ifr_data = (void*)&ev;
if (ioctl(s, SIOCETHTOOL, ifr) >= 0) cfg->flags |= ev.data? HAWK_IFCFG_LINKUP: HAWK_IFCFG_LINKDOWN;
}
#endif

View File

@ -7505,10 +7505,10 @@ static struct
{ HAWK_T("str"), hawk_mod_str },
{ HAWK_T("sys"), hawk_mod_sys },
#if defined(HAWK_ENABLE_MOD_UCI)
{ HAWK_T("uci"), hawk_mod_uci }
{ HAWK_T("uci"), hawk_mod_uci },
#endif
#if defined(HAWK_ENABLE_MOD_MEMC)
{ HAWK_T("memc"), hawk_mod_memc }
{ HAWK_T("memc"), hawk_mod_memc },
#endif
};
#endif