statzone

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

commit e3cf216ad102fb9dbd414241189a76d7951a5020
parent 005f2ff650b571dea7228bcafe88a4d5bd24dc15
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun,  8 Aug 2021 12:29:10 +0200

Remove code to get zone file size, it's unused.

Diffstat:
Msrc/statzone.cpp | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/statzone.cpp b/src/statzone.cpp @@ -13,7 +13,6 @@ #include <err.h> #include <getopt.h> #include <string.h> -#include <sys/stat.h> #include <chrono> #include <csignal> @@ -65,8 +64,6 @@ siginfo_handler(int signum) int main(int argc, char *argv[]) { - struct stat zonefile_stat; - std::unordered_set<std::string> signed_domains; std::unordered_set<std::string> unique_ns; @@ -130,12 +127,6 @@ main(int argc, char *argv[]) } } - /* Get zone file size */ - if (fstat(fileno(zonefile), &zonefile_stat)) { - perror("Can't stat zone file"); - return EXIT_FAILURE; - } - while (fgets(linebuffer, LINE_LENGTH_MAX, zonefile)) { if (!*linebuffer) continue;