statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit c6ad610464dca62c311134f383b57af3d7538a46
parent 4a675990c812bc3d866c2d7c0b281e1e98b809d6
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  4 Jan 2019 10:02:36 +0100

Hook uthash to the build, will be used to count unique strings.

Diffstat:
MCMakeLists.txt | 6+++++-
Msrc/statzone.c | 4+++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -4,7 +4,7 @@ # https://www.statdns.com # # Created: 2012-02-13 -# Last Updated: 2019-01-03 +# Last Updated: 2019-01-04 # # StatZone is released under the BSD 2-Clause license # See LICENSE file for details. @@ -20,6 +20,10 @@ include(GNUInstallDirs) # Additional include directories for compat functions include_directories("compat") +# uthash +find_path(UTHASH_INCLUDE_DIRS uthash.h) +include_directories(${UTHASH_INCLUDE_DIRS}) + set(SRC src/statzone.c src/strtolower.c) add_definitions(-Wall -Wextra -std=c99 -pedantic) diff --git a/src/statzone.c b/src/statzone.c @@ -4,7 +4,7 @@ * https://www.statdns.com * * Created: 2012-02-13 - * Last Updated: 2019-01-03 + * Last Updated: 2019-01-04 * * StatZone is released under the BSD 2-Clause license * See LICENSE file for details. @@ -21,6 +21,8 @@ #include <string.h> #include <time.h> +#include <uthash.h> + #include "compat.h" #include "config.h" #include "strtolower.h"