about summary refs log tree commit diff
path: root/nis
diff options
context:
space:
mode:
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_error.c1
-rw-r--r--nis/nis_print.c2
-rw-r--r--nis/nss_nisplus/nisplus-hosts.c5
3 files changed, 6 insertions, 2 deletions
diff --git a/nis/nis_error.c b/nis/nis_error.c
index 760dc518ab..6ed1cc914a 100644
--- a/nis/nis_error.c
+++ b/nis/nis_error.c
@@ -19,6 +19,7 @@
 
 #include <errno.h>
 #include <syslog.h>
+#include <string.h>
 #include <rpcsvc/nis.h>
 #include <rpcsvc/nislib.h>
 
diff --git a/nis/nis_print.c b/nis/nis_print.c
index e6eb264ae7..f829994245 100644
--- a/nis/nis_print.c
+++ b/nis/nis_print.c
@@ -18,6 +18,8 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <time.h>
+#include <string.h>
+
 #include <rpcsvc/nis.h>
 #include <rpcsvc/nislib.h>
 
diff --git a/nis/nss_nisplus/nisplus-hosts.c b/nis/nss_nisplus/nisplus-hosts.c
index c933ae49be..6f1b4be35b 100644
--- a/nis/nss_nisplus/nisplus-hosts.c
+++ b/nis/nss_nisplus/nisplus-hosts.c
@@ -101,8 +101,9 @@ LINE_PARSER
    /* If we need the host entry in IPv6 form change it now.  */
    if (_res.options & RES_USE_INET6)
      {
-        char *bufptr = data->linebuffer;
-       size_t buflen = (char *) data + datalen - bufptr;
+       char *bufptr = data->linebuffer;
+       /* This should be size_t */
+       int buflen = (char *) data + datalen - bufptr;
        map_v4v6_hostent (result, &bufptr, &buflen);
      }