removed unstable assertions
This commit is contained in:
parent
aeff29f68e
commit
93beb3f041
@ -107,7 +107,7 @@ typedef struct mod_ctx_t mod_ctx_t;
|
|||||||
|
|
||||||
enum sys_node_data_type_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_SCK = (1 << 1),
|
||||||
SYS_NODE_DATA_TYPE_DIR = (1 << 2),
|
SYS_NODE_DATA_TYPE_DIR = (1 << 2),
|
||||||
SYS_NODE_DATA_TYPE_MUX = (1 << 3)
|
SYS_NODE_DATA_TYPE_MUX = (1 << 3)
|
||||||
|
@ -31,14 +31,12 @@
|
|||||||
int hawk_skad_family (const hawk_skad_t* _skad)
|
int hawk_skad_family (const hawk_skad_t* _skad)
|
||||||
{
|
{
|
||||||
const hawk_skad_alt_t* skad = (const hawk_skad_alt_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;
|
return skad->sa.sa_family;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hawk_skad_size (const hawk_skad_t* _skad)
|
int hawk_skad_size (const hawk_skad_t* _skad)
|
||||||
{
|
{
|
||||||
const hawk_skad_alt_t* skad = (const hawk_skad_alt_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)
|
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)
|
void hawk_clear_skad (hawk_skad_t* _skad)
|
||||||
{
|
{
|
||||||
hawk_skad_alt_t* skad = (hawk_skad_alt_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));
|
HAWK_MEMSET (skad, 0, HAWK_SIZEOF(*skad));
|
||||||
skad->sa.sa_family = HAWK_AF_UNSPEC;
|
skad->sa.sa_family = HAWK_AF_UNSPEC;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user