touched up some wrong type casting
This commit is contained in:
parent
867e8bb63e
commit
523b922be4
@ -424,7 +424,7 @@ entry:
|
|||||||
if (g->flags & HAWK_GLOB_SKIPSPCDIR) dir_flags |= HAWK_DIR_SKIPSPCDIR;
|
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;
|
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)
|
if (dp)
|
||||||
{
|
{
|
||||||
tmp = HAWK_UECS_LEN(&g->path);
|
tmp = HAWK_UECS_LEN(&g->path);
|
||||||
@ -872,9 +872,9 @@ entry:
|
|||||||
{
|
{
|
||||||
int dir_flags = 0;
|
int dir_flags = 0;
|
||||||
if (g->flags & HAWK_GLOB_SKIPSPCDIR) dir_flags |= HAWK_DIR_SKIPSPCDIR;
|
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)
|
if (dp)
|
||||||
{
|
{
|
||||||
tmp = HAWK_BECS_LEN(&g->path);
|
tmp = HAWK_BECS_LEN(&g->path);
|
||||||
|
@ -756,7 +756,7 @@ static void get_moreinfo (int s, hawk_ifcfg_t* cfg, struct ifreq* ifr)
|
|||||||
struct ethtool_value ev;
|
struct ethtool_value ev;
|
||||||
HAWK_MEMSET (&ev, 0, HAWK_SIZEOF(ev));
|
HAWK_MEMSET (&ev, 0, HAWK_SIZEOF(ev));
|
||||||
ev.cmd= ETHTOOL_GLINK;
|
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;
|
if (ioctl(s, SIOCETHTOOL, ifr) >= 0) cfg->flags |= ev.data? HAWK_IFCFG_LINKUP: HAWK_IFCFG_LINKDOWN;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -7505,10 +7505,10 @@ static struct
|
|||||||
{ HAWK_T("str"), hawk_mod_str },
|
{ HAWK_T("str"), hawk_mod_str },
|
||||||
{ HAWK_T("sys"), hawk_mod_sys },
|
{ HAWK_T("sys"), hawk_mod_sys },
|
||||||
#if defined(HAWK_ENABLE_MOD_UCI)
|
#if defined(HAWK_ENABLE_MOD_UCI)
|
||||||
{ HAWK_T("uci"), hawk_mod_uci }
|
{ HAWK_T("uci"), hawk_mod_uci },
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAWK_ENABLE_MOD_MEMC)
|
#if defined(HAWK_ENABLE_MOD_MEMC)
|
||||||
{ HAWK_T("memc"), hawk_mod_memc }
|
{ HAWK_T("memc"), hawk_mod_memc },
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user