[215] in Hesiod
Hesiod IN Class diffs
daemon@ATHENA.MIT.EDU (dean@hi.com)
Mon Jul 18 18:01:00 1994
From: dean@hi.com
To: shadow@helium.club.cc.cmu.edu (Derrick J. Brashear)
Cc: hesiod@MIT.EDU
In-Reply-To: Your message of "Fri, 08 Jul 94 13:00:20 EDT."
<9407081700.AA09460@helium.club.cc.cmu.edu.cc.cmu.edu>
Date: Mon, 18 Jul 94 17:32:39 EDT
Here are the diffs I promised to use IN class records instead of HS class
records. On line 169, retvec was changed from static to allocated so that
hes_resolve could be called recursively during processing of data returned
from hesiod. This was done to support an attach function I wrote. This can
be safely installed, although applications that make repeated calls to
hes_resolve() should free the return value.
--Dean
rdiff -r1.3 hesiod.c
52c52
< static char rcsid_hesiod_c[] = "$Header: hesiod.c,v 1.3 90/03/06 12:48:28 mar Exp $";
---
> static char rcsid_hesiod_c[] = "$Header: /u1/src/misc/hesiod/hesiod/RCS/hesiod.c,v 1.3 1990/03/06 12:48:28 mar Exp dean $";
169c169
< static char *retvec[100];
---
> char **retvec = (char **) calloc(sizeof(char *), 100);
180c180
< ns = _resolve(cp, C_HS, T_TXT, NoRetryTime);
---
> ns = _resolve(cp, C_IN, T_TXT, NoRetryTime);
191c191
< rp->class == C_HS &&
---
> rp->class == C_IN &&
=++=+=+=+++==++=+=+=+++==++=+=+=+++==++=+=+=+++==++=+=+=+++==++=+=+=+++=
Dean Anderson Dean@hi.com
Project Leader, System Administration
Hitachi Computer Products