From 07c1d44f874553b335a6f48ef9c65ddb336a39e0 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Thu, 13 Aug 2015 02:36:37 +0000 Subject: [PATCH] Use nitems instead of "sizeof ypaliases/sizeof ypaliases[0]". Make the if statement more expressive. Differential Revision: D3366 Reviewed by: ed Approved by: bapt, rodrigc (mentor) --- usr.bin/ypcat/ypcat.c | 6 +++--- usr.bin/ypwhich/ypwhich.c | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index aad07cc21db9..b729e368a68f 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -96,7 +96,7 @@ main(int argc, char *argv[]) while ((c = getopt(argc, argv, "xd:kt")) != -1) switch (c) { case 'x': - for (i=0; i