From ba86ca7c849b129650d5bc77bb7adc21bf4ddeb8 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 27 Jul 2017 14:34:57 +0000 Subject: [PATCH] Fix singular/plural "users" output. It was broken during libxo'fication. PR: 221039 Submitted by: timur@ MFC after: 1 week --- usr.bin/w/w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 72b85826eb6..1db6e9c921f 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -511,7 +511,7 @@ pr_header(time_t *nowp, int nusers) } /* Print number of users logged in to system */ - xo_emit(" {:users/%d} {N:user%s}", nusers, nusers == 1 ? "" : "s"); + xo_emit(" {:users/%d} {Np:user,users}", nusers); /* * Print 1, 5, and 15 minute load averages. -- 2.45.0