aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
Diffstat (limited to 'nis')
-rw-r--r--nis/nss_nis/nis-hosts.c3
-rw-r--r--nis/rpcsvc/nis_tags.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-hosts.c b/nis/nss_nis/nis-hosts.c
index f08a624..e627d24 100644
--- a/nis/nss_nis/nis-hosts.c
+++ b/nis/nss_nis/nis-hosts.c
@@ -199,7 +199,8 @@ internal_nis_gethostent_r (struct hostent *host, char *buffer,
++p;
free (result);
- if ((parse_res = parse_line (p, host, data, buflen, errnop)) == -1)
+ parse_res = parse_line (p, host, data, buflen, errnop);
+ if (parse_res == -1)
{
free (outkey);
*h_errnop = NETDB_INTERNAL;
diff --git a/nis/rpcsvc/nis_tags.h b/nis/rpcsvc/nis_tags.h
index 19a5bca..9a24188 100644
--- a/nis/rpcsvc/nis_tags.h
+++ b/nis/rpcsvc/nis_tags.h
@@ -12,7 +12,9 @@
#ifndef _RPCSVC_NIS_TAGS_H
#define _RPCSVC_NIS_TAGS_H
+#if 0
#pragma ident "@(#)nis_tags.h 1.16 96/10/25 SMI"
+#endif
/* from file: zns_tags.h 1.7 Copyright (c) 1990 Sun Microsystems */
#ifdef __cplusplus