Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vladishev <aleksander.vladishev@zabbix.com>2013-03-19 15:46:57 +0400
committerAlexander Vladishev <aleksander.vladishev@zabbix.com>2013-03-19 15:46:57 +0400
commit18b339b3d9621bbc52a9ca9139a5e5357ad06fce (patch)
tree5038355c50e12f1641bdbcd5bf40874cca3f5663 /include/zbxtypes.h
parentb5cfdd7f53bbfeec9fec8a92c1dfa15fb2b24ae7 (diff)
...G...PS. [ZBXNEXT-1633] improved performance by using our is_uint_n_range() function instead of sscanf()
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h
index 1e1f1f05b16..4525d29ebe9 100644
--- a/include/zbxtypes.h
+++ b/include/zbxtypes.h
@@ -123,7 +123,7 @@
# define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
-#define ZBX_STR2UINT64(uint, string) sscanf(string, ZBX_FS_UI64, &uint)
+#define ZBX_STR2UINT64(uint, string) is_uint64(string, &uint)
#define ZBX_OCT2UINT64(uint, string) sscanf(string, ZBX_FS_UO64, &uint)
#define ZBX_HEX2UINT64(uint, string) sscanf(string, ZBX_FS_UX64, &uint)