[hackers] [sbase] expand, unexpand: Minor style fix as per the suckless guide || sin

From: <git_AT_suckless.org>
Date: Tue, 17 Feb 2015 14:50:40 +0100 (CET)

commit 0d12290926bdd575701f2f65ad11ea0d25607d87
Author: sin <sin_AT_2f30.org>
Date: Tue Feb 17 12:14:44 2015 +0000

    expand, unexpand: Minor style fix as per the suckless guide

diff --git a/expand.c b/expand.c
index 6b00439..d47c567 100644
--- a/expand.c
+++ b/expand.c
_AT_@ -105,9 +105,9 @@ main(int argc, char *argv[])
 
         tablistlen = parselist(tl);
 
- if (argc == 0)
+ if (argc == 0) {
                 expand("<stdin>", stdin);
- else {
+ } else {
                 for (; argc > 0; argc--, argv++) {
                         if (!(fp = fopen(argv[0], "r"))) {
                                 weprintf("fopen %s:", argv[0]);
diff --git a/unexpand.c b/unexpand.c
index 7f490cb..8d23a05 100644
--- a/unexpand.c
+++ b/unexpand.c
_AT_@ -148,9 +148,9 @@ main(int argc, char *argv[])
 
         tablistlen = parselist(tl);
 
- if (argc == 0)
+ if (argc == 0) {
                 unexpand("<stdin>", stdin);
- else {
+ } else {
                 for (; argc > 0; argc--, argv++) {
                         if (!(fp = fopen(argv[0], "r"))) {
                                 weprintf("fopen %s:", argv[0]);
Received on Tue Feb 17 2015 - 14:50:40 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 17 2015 - 15:00:13 CET