removed unstable assertions

This commit is contained in:
hyung-hwan 2020-03-02 13:35:35 +00:00
parent aeff29f68e
commit 93beb3f041
2 changed files with 1 additions and 4 deletions

View File

@ -107,7 +107,7 @@ typedef struct mod_ctx_t mod_ctx_t;
enum sys_node_data_type_t
{
SYS_NODE_DATA_TYPE_FILE = (1 << 0),
SYS_NODE_DATA_TYPE_FILE = (1 << 0),
SYS_NODE_DATA_TYPE_SCK = (1 << 1),
SYS_NODE_DATA_TYPE_DIR = (1 << 2),
SYS_NODE_DATA_TYPE_MUX = (1 << 3)

View File

@ -31,14 +31,12 @@
int hawk_skad_family (const hawk_skad_t* _skad)
{
const hawk_skad_alt_t* skad = (const hawk_skad_alt_t*)_skad;
HAWK_ASSERT (HAWK_SIZEOF(*_skad) >= HAWK_SIZEOF(*skad));
return skad->sa.sa_family;
}
int hawk_skad_size (const hawk_skad_t* _skad)
{
const hawk_skad_alt_t* skad = (const hawk_skad_alt_t*)_skad;
HAWK_ASSERT (HAWK_SIZEOF(*_skad) >= HAWK_SIZEOF(*skad));
switch (skad->sa.sa_family)
{
@ -62,7 +60,6 @@ int hawk_skad_size (const hawk_skad_t* _skad)
void hawk_clear_skad (hawk_skad_t* _skad)
{
hawk_skad_alt_t* skad = (hawk_skad_alt_t*)_skad;
HAWK_ASSERT (HAWK_SIZEOF(*_skad) >= HAWK_SIZEOF(*skad));
HAWK_MEMSET (skad, 0, HAWK_SIZEOF(*skad));
skad->sa.sa_family = HAWK_AF_UNSPEC;
}