From f8af48faa18b6d9017ea64f4df2d6ee2b1743df3 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 29 Oct 2013 20:01:30 +0100 Subject: Fix a number of compiler warnings This includes a number of small fixes for issues that were formerly masked by the incorrect AC_LANG_PROGRAM check. --- nss/networks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/networks.c') diff --git a/nss/networks.c b/nss/networks.c index 4130205..6d12ca6 100644 --- a/nss/networks.c +++ b/nss/networks.c @@ -170,7 +170,7 @@ static char *netent2str(struct netent *result, char *buffer, size_t buflen) struct in_addr priv_in_addr; priv_in_addr.s_addr = result->n_net; res = snprintf(buffer, buflen, "%s %s", result->n_name, inet_ntoa(priv_in_addr)); - if ((res < 0) || (res >= buflen)) + if ((res < 0) || (res >= (int)buflen)) return NULL; if (result->n_aliases) for (i = 0; result->n_aliases[i]; i++) -- cgit v1.2.3