expand, unexpand: Minor style fix as per the suckless guide
This commit is contained in:
parent
29be7a3f23
commit
9effb224c8
4
expand.c
4
expand.c
@ -105,9 +105,9 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
tablistlen = parselist(tl);
|
tablistlen = parselist(tl);
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0) {
|
||||||
expand("<stdin>", stdin);
|
expand("<stdin>", stdin);
|
||||||
else {
|
} else {
|
||||||
for (; argc > 0; argc--, argv++) {
|
for (; argc > 0; argc--, argv++) {
|
||||||
if (!(fp = fopen(argv[0], "r"))) {
|
if (!(fp = fopen(argv[0], "r"))) {
|
||||||
weprintf("fopen %s:", argv[0]);
|
weprintf("fopen %s:", argv[0]);
|
||||||
|
@ -148,9 +148,9 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
tablistlen = parselist(tl);
|
tablistlen = parselist(tl);
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0) {
|
||||||
unexpand("<stdin>", stdin);
|
unexpand("<stdin>", stdin);
|
||||||
else {
|
} else {
|
||||||
for (; argc > 0; argc--, argv++) {
|
for (; argc > 0; argc--, argv++) {
|
||||||
if (!(fp = fopen(argv[0], "r"))) {
|
if (!(fp = fopen(argv[0], "r"))) {
|
||||||
weprintf("fopen %s:", argv[0]);
|
weprintf("fopen %s:", argv[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user