(getspent_next_file_plususer): Add cast to prevent warning.
authordrepper <drepper>
Tue, 15 Apr 1997 01:21:08 +0000 (01:21 +0000)
committerdrepper <drepper>
Tue, 15 Apr 1997 01:21:08 +0000 (01:21 +0000)
nis/nss_compat/compat-spwd.c

index 74967f8..30c4e40 100644 (file)
@@ -630,7 +630,7 @@ getspent_next_file_plususer (struct spwd *result, char *buffer,
           != YPERR_SUCCESS)
         return NSS_STATUS_TRYAGAIN;
       p = strncpy (buffer, outval,
           != YPERR_SUCCESS)
         return NSS_STATUS_TRYAGAIN;
       p = strncpy (buffer, outval,
-                   buflen < outvallen ? buflen : outvallen);
+                   buflen < (size_t) outvallen ? buflen : (size_t) outvallen);
       free (outval);
       while (isspace (*p))
         p++;
       free (outval);
       while (isspace (*p))
         p++;