paste(1): Make small modifications to improve readability
Signed-off-by: Faraz Vahedi <kfv@kfv.io> Reviewed by: imp, oshogbo Pull Request: https://github.com/freebsd/freebsd-src/pull/1443
This commit is contained in:
committed by
Warner Losh
parent
4ba5c9d015
commit
2e01fc43f2
@@ -99,10 +99,8 @@ main(int argc, char *argv[])
|
|||||||
delim = tab;
|
delim = tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seq)
|
rval = seq ? sequential(argv) : parallel(argv);
|
||||||
rval = sequential(argv);
|
|
||||||
else
|
|
||||||
rval = parallel(argv);
|
|
||||||
exit(rval);
|
exit(rval);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +116,6 @@ static STAILQ_HEAD(head, _list) lh;
|
|||||||
static int
|
static int
|
||||||
parallel(char **argv)
|
parallel(char **argv)
|
||||||
{
|
{
|
||||||
struct head lh;
|
|
||||||
LIST *lp;
|
LIST *lp;
|
||||||
int cnt;
|
int cnt;
|
||||||
wint_t ich;
|
wint_t ich;
|
||||||
@@ -244,7 +241,8 @@ tr(wchar_t *arg)
|
|||||||
default:
|
default:
|
||||||
*arg = ch;
|
*arg = ch;
|
||||||
break;
|
break;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
*arg = ch;
|
*arg = ch;
|
||||||
|
|
||||||
if (!cnt)
|
if (!cnt)
|
||||||
|
|||||||
Reference in New Issue
Block a user