From 0f2cb9b020b907000a28323fc57a82fdb7d6626d Mon Sep 17 00:00:00 2001 From: des 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.sbin/rpc.ypupdated/yp_dbupdate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/rpc.ypupdated/yp_dbupdate.c') diff --git a/usr.sbin/rpc.ypupdated/yp_dbupdate.c b/usr.sbin/rpc.ypupdated/yp_dbupdate.c index 8fb1eba..b94b4b7 100644 --- a/usr.sbin/rpc.ypupdated/yp_dbupdate.c +++ b/usr.sbin/rpc.ypupdated/yp_dbupdate.c @@ -55,7 +55,7 @@ static int yp_domake(map, domain) { int pid; - switch((pid = fork())) { + switch ((pid = fork())) { case 0: execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, (char *)NULL); yp_error("couldn't exec map update process: %s", @@ -104,7 +104,7 @@ int ypmap_update(netname, map, op, keylen, keyval, datlen, datval) data.data = datval; data.size = datlen; - switch(op) { + switch (op) { case YPOP_DELETE: /* delete this entry */ rval = yp_del_record(dbp, &key); if (rval == YP_TRUE) -- cgit v1.1