commit 1faacb60c2929181bc189eae31e41edaa82d52d9
parent df792907ed5e6622a7e587fc101dea1fcdc26142
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 8 Feb 2021 16:58:58 +0100
Rename the my_struct struct to domain.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -72,13 +72,13 @@ main(int argc, char *argv[])
struct stat zonefile_stat;
- struct my_struct {
+ struct domain {
char *domain;
UT_hash_handle hh;
};
- struct my_struct *ds = NULL, *signed_domains = NULL;
- struct my_struct *ns = NULL, *unique_ns = NULL;
+ struct domain *ds = NULL, *signed_domains = NULL;
+ struct domain *ns = NULL, *unique_ns = NULL;
int opt, token_count;
@@ -197,7 +197,7 @@ main(int argc, char *argv[])
HASH_FIND_STR(signed_domains, domain, ds);
if (!ds) {
- ds = malloc(sizeof (struct my_struct));
+ ds = malloc(sizeof (struct domain));
if (ds == NULL)
error("Memory allocation error.");
@@ -234,7 +234,7 @@ main(int argc, char *argv[])
HASH_FIND_STR(unique_ns, rdata, ns);
if (!ns) {
- ns = malloc(sizeof (struct my_struct));
+ ns = malloc(sizeof (struct domain));
if (ns == NULL)
error("Memory allocation error.");