statzone

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

commit 58a6f8c07d006ae126bebbc67d15a08cf7e3161c
parent 7f3eb6d9b9692b01ef3e129be89a3ccc708ed36f
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon,  8 Feb 2021 14:56:18 +0100

Reorder and reformat variables declaration.

Diffstat:
Msrc/statzone.c | 19++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/src/statzone.c b/src/statzone.c @@ -62,18 +62,9 @@ summary() int main(int argc, char *argv[]) { - char lineBuffer[LINE_LENGTH_MAX]; - FILE *zonefile; - struct stat zonefile_stat; - - int8_t opt; - char *intput; - - char *domain; - char *previous_domain; - char *rdata; + struct stat zonefile_stat; struct my_struct { char *domain; @@ -85,9 +76,11 @@ main(int argc, char *argv[]) struct my_struct *unique_ns = NULL; struct my_struct *ns; - char *token = NULL; - char *token_lc = NULL; - int token_count; + int opt, token_count; + + char lineBuffer[LINE_LENGTH_MAX]; + char *intput, *domain, *previous_domain; + char *rdata, *token = NULL, *token_lc = NULL; if (pledge("stdio rpath", NULL) == -1) { err(EXIT_FAILURE, "pledge");