1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Fix build for !YP case.

BTW.  Shall we change these fields to have yp_ prefix?  That will make the
code easier to read.
This commit is contained in:
Xin LI 2005-04-17 15:10:30 +00:00
parent 7f964aa6aa
commit 6d44c5c74b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145194

View File

@ -66,10 +66,12 @@ servent_data_clear(struct servent_data *sed)
fclose(sed->fp);
sed->fp = NULL;
}
#ifdef YP
if (sed->key) {
free(sed->key);
sed->key = NULL;
}
#endif
}
static void
@ -243,8 +245,10 @@ endservent_r(struct servent_data *sed)
{
servent_data_clear(sed);
sed->stayopen = 0;
#ifdef YP
sed->stepping_yp = 0;
sed->yp_domain = NULL;
#endif
}
int