diff --git a/hawk/lib/mod-sys.c b/hawk/lib/mod-sys.c index e31f0471..c16a4ee6 100644 --- a/hawk/lib/mod-sys.c +++ b/hawk/lib/mod-sys.c @@ -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) diff --git a/hawk/lib/utl-skad.c b/hawk/lib/utl-skad.c index 05bdef92..dfc65f79 100644 --- a/hawk/lib/utl-skad.c +++ b/hawk/lib/utl-skad.c @@ -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; }