aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 9861d6e6a92c..a2cd7e2730a7 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -63,6 +63,7 @@ __FBSDID("$FreeBSD$");
#include <netdb.h>
#include <nlist.h>
#include <paths.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -273,7 +274,6 @@ struct protox *protoprotox[] = {
#endif
atalkprotox, NULL };
-const char *pluralies(int);
static void printproto(struct protox *, const char *);
static void usage(void);
static struct protox *name2protox(char *);
@@ -657,19 +657,19 @@ kread(u_long addr, char *buf, int size)
}
const char *
-plural(int n)
+plural(uintmax_t n)
{
return (n != 1 ? "s" : "");
}
const char *
-plurales(int n)
+plurales(uintmax_t n)
{
return (n != 1 ? "es" : "");
}
const char *
-pluralies(int n)
+pluralies(uintmax_t n)
{
return (n != 1 ? "ies" : "y");
}