diff options
Diffstat (limited to 'contrib/bind/lib/irs/nul_ng.c')
| -rw-r--r-- | contrib/bind/lib/irs/nul_ng.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/bind/lib/irs/nul_ng.c b/contrib/bind/lib/irs/nul_ng.c index 0910d579e20a..cc5c80177c59 100644 --- a/contrib/bind/lib/irs/nul_ng.c +++ b/contrib/bind/lib/irs/nul_ng.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996 by Internet Software Consortium. + * Copyright (c) 1996,1999 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: nul_ng.c,v 1.7 1997/12/04 04:58:01 halley Exp $"; +static const char rcsid[] = "$Id: nul_ng.c,v 1.10 1999/01/18 07:46:59 vixie Exp $"; #endif /* @@ -27,6 +27,8 @@ static const char rcsid[] = "$Id: nul_ng.c,v 1.7 1997/12/04 04:58:01 halley Exp #include <sys/types.h> #include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> #include <stdio.h> #include <string.h> @@ -36,6 +38,7 @@ static const char rcsid[] = "$Id: nul_ng.c,v 1.7 1997/12/04 04:58:01 halley Exp #include <errno.h> #include <irs.h> +#include <isc/memcluster.h> #include "port_after.h" @@ -59,7 +62,7 @@ struct irs_ng * irs_nul_ng(struct irs_acc *this) { struct irs_ng *ng; - if (!(ng = malloc(sizeof *ng))) { + if (!(ng = memget(sizeof *ng))) { errno = ENOMEM; return (NULL); } @@ -77,7 +80,7 @@ irs_nul_ng(struct irs_acc *this) { static void ng_close(struct irs_ng *this) { - free(this); + memput(this, sizeof *this); } /* ARGSUSED */ |
