From 7585c36e3efa4dec1e1181a83a8cacc5cdd756ed Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 16 Feb 2020 13:43:01 +0000 Subject: [PATCH] fixed HAWK_SIZEOF_SKAD_T defintion --- hawk/lib/hawk-cmn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hawk/lib/hawk-cmn.h b/hawk/lib/hawk-cmn.h index c14fb7e1..1e79c308 100644 --- a/hawk/lib/hawk-cmn.h +++ b/hawk/lib/hawk-cmn.h @@ -1362,15 +1362,15 @@ typedef enum hawk_log_mask_t hawk_log_mask_t; # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_IN #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_IN6 #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_LL > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_LL > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_LL #endif -#if (HAWK_SIZEOF_STRUCT_SOCKADDR_UN > 0) +#if (HAWK_SIZEOF_STRUCT_SOCKADDR_UN > HAWK_SIZEOF_SKAD_T) # undef HAWK_SIZEOF_SKAD_T # define HAWK_SIZEOF_SKAD_T HAWK_SIZEOF_STRUCT_SOCKADDR_UN #endif