summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-01-14 16:02:56 +0000
committermtm <mtm@FreeBSD.org>2003-01-14 16:02:56 +0000
commit2da153c5bb45b9d849dd9db0ed1e7bd4b90abbba (patch)
treef8a4d417db6529e3ef3e9f1994e6faf4e46e97c6 /usr.bin/netstat/main.c
parentb5975780a0ec07e1672f8122aefd604a2175e51d (diff)
downloadFreeBSD-src-2da153c5bb45b9d849dd9db0ed1e7bd4b90abbba.zip
FreeBSD-src-2da153c5bb45b9d849dd9db0ed1e7bd4b90abbba.tar.gz
o Typo/Grammar fixes
o Added mini-function to correctly handle singular/plural of words ending in 'ly' Approved by: markm (mentor) Not objected to by: -audit
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 6af1ac7..d674227 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -703,6 +703,12 @@ plurales(int n)
return (n != 1 ? "es" : "");
}
+const char *
+pluralies(int n)
+{
+ return (n != 1 ? "ies" : "y");
+}
+
/*
* Find the protox for the given "well-known" name.
*/
OpenPOWER on IntegriCloud