diff options
Diffstat (limited to 'hesiod/hesiod.c')
-rw-r--r-- | hesiod/hesiod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hesiod/hesiod.c b/hesiod/hesiod.c index ee087b0..fe61d0d 100644 --- a/hesiod/hesiod.c +++ b/hesiod/hesiod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997-2024 Free Software Foundation, Inc. +/* Copyright (C) 1997-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -80,7 +80,7 @@ hesiod_init(void **context) { char *cp; ctx = malloc(sizeof(struct hesiod_p)); - if (ctx == 0) + if (ctx == NULL) return (-1); ctx->LHS = NULL; @@ -247,7 +247,7 @@ parse_config_file(struct hesiod_p *ctx, const char *filename) { */ free(ctx->RHS); free(ctx->LHS); - ctx->RHS = ctx->LHS = 0; + ctx->RHS = ctx->LHS = NULL; /* Set default query classes. */ ctx->classes[0] = C_IN; ctx->classes[1] = C_HS; @@ -316,7 +316,7 @@ parse_config_file(struct hesiod_p *ctx, const char *filename) { fclose(fp); free(ctx->RHS); free(ctx->LHS); - ctx->RHS = ctx->LHS = 0; + ctx->RHS = ctx->LHS = NULL; return (-1); } |