diff options
author | delphij <delphij@FreeBSD.org> | 2005-04-17 15:10:30 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-04-17 15:10:30 +0000 |
commit | a524a21406ca0fdd3bb12a19a1e74d531e2c4e79 (patch) | |
tree | b79ae8b22056e1aefeee85bc112528734e5b1d4d /lib/libc/net/getservent.c | |
parent | 04b7f3b4a806515dd37427d68f33ee7fd081ad15 (diff) | |
download | FreeBSD-src-a524a21406ca0fdd3bb12a19a1e74d531e2c4e79.zip FreeBSD-src-a524a21406ca0fdd3bb12a19a1e74d531e2c4e79.tar.gz |
Fix build for !YP case.
BTW. Shall we change these fields to have yp_ prefix? That will make the
code easier to read.
Diffstat (limited to 'lib/libc/net/getservent.c')
-rw-r--r-- | lib/libc/net/getservent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c index 26c2e28..24c73d7 100644 --- a/lib/libc/net/getservent.c +++ b/lib/libc/net/getservent.c @@ -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 |