diff options
author | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2014-08-29 16:02:09 +0400 |
---|---|---|
committer | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2014-08-29 16:02:09 +0400 |
commit | b88ac68e6f4b077ef4b0ce57deb6ce51ebbd633a (patch) | |
tree | ce2474815da020fb5ff7d810fcd1bbd59a56cd5f /include/zbxtypes.h | |
parent | b572b9b0a67b83a45f0f80a2263940f9ea0ffe7d (diff) |
...G...PS. [ZBXNEXT-101] minor code improvements
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r-- | include/zbxtypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |