From ed4d1c46a27632aa553e7c24c969262bfc2d5c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 6 Feb 2002 13:30:31 +0000 Subject: Apply the following mechanical transformations in preparation for ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week --- usr.bin/ypcat/ypcat.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'usr.bin/ypcat') diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index 0fd91ec0effd..033d343f0636 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -75,12 +75,12 @@ usage(void) static int printit(unsigned long instatus, char *inkey, int inkeylen, char *inval, int invallen, void *dummy __unused) { - if(instatus != YP_TRUE) - return instatus; - if(key) + if (instatus != YP_TRUE) + return (instatus); + if (key) printf("%*.*s ", inkeylen, inkeylen, inkey); printf("%*.*s\n", invallen, invallen, inval); - return 0; + return (0); } int @@ -95,10 +95,10 @@ main(int argc, char *argv[]) notrans = key = 0; - while( (c=getopt(argc, argv, "xd:kt")) != -1) - switch(c) { + while ((c = getopt(argc, argv, "xd:kt")) != -1) + switch (c) { case 'x': - for(i=0; i