From b88ac68e6f4b077ef4b0ce57deb6ce51ebbd633a Mon Sep 17 00:00:00 2001 From: Alexander Vladishev Date: Fri, 29 Aug 2014 12:02:09 +0000 Subject: ...G...PS. [ZBXNEXT-101] minor code improvements --- include/zbxtypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/zbxtypes.h') diff --git a/include/zbxtypes.h b/include/zbxtypes.h index f637de68f1c..47d7d0cb137 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -120,6 +120,7 @@ typedef off_t zbx_offset_t; #define ZBX_STR2UCHAR(var, string) var = (unsigned char)atoi(string) #define ZBX_CONST_STRING(str) ""str +#define ZBX_CONST_STRLEN(str) (sizeof(ZBX_CONST_STRING(str)) - 1) typedef struct { -- cgit v1.2.3