[hackers] [sbase] whitespace fixes || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 28 Mar 2015 22:03:53 +0100 (CET)

commit 1e0c3a0ba60c3b65344efacd2e6a879ed7e5e0f7
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Mar 27 22:47:15 2015 +0100

    whitespace fixes

diff --git a/grep.c b/grep.c
index 8decd67..1267055 100644
--- a/grep.c
+++ b/grep.c
_AT_@ -193,7 +193,7 @@ main(int argc, char *argv[])
                 break;
         case 'e':
                 arg = EARGF(usage());
- if(!(fp = fmemopen(arg, strlen(arg) + 1, "r")))
+ if (!(fp = fmemopen(arg, strlen(arg) + 1, "r")))
                         eprintf("fmemopen:");
                 addpatternfile(fp);
                 fclose(fp);
_AT_@ -243,7 +243,7 @@ main(int argc, char *argv[])
 
         /* just add literal pattern to list */
         if (!eflag && !fflag) {
- if(!(fp = fmemopen(argv[0], strlen(argv[0]) + 1, "r")))
+ if (!(fp = fmemopen(argv[0], strlen(argv[0]) + 1, "r")))
                         eprintf("fmemopen:");
                 addpatternfile(fp);
                 fclose(fp);
diff --git a/uniq.c b/uniq.c
index 344e158..cb96c13 100644
--- a/uniq.c
+++ b/uniq.c
_AT_@ -57,15 +57,15 @@ uniqline(FILE *ofp, const char *l, size_t len)
                 prevoffset = NULL;
         }
 
- if (l) {
- if (!prevline || len >= prevlinesiz) {
- prevlinesiz = len + 1;
- prevline = erealloc(prevline, prevlinesiz);
- }
- memcpy(prevline, l, len);
- prevline[len] = '\0';
- prevoffset = prevline + (loffset - l);
- }
+ if (l) {
+ if (!prevline || len >= prevlinesiz) {
+ prevlinesiz = len + 1;
+ prevline = erealloc(prevline, prevlinesiz);
+ }
+ memcpy(prevline, l, len);
+ prevline[len] = '\0';
+ prevoffset = prevline + (loffset - l);
+ }
         prevlinecount = 1;
 }
 
Received on Sat Mar 28 2015 - 22:03:53 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 28 2015 - 22:12:35 CET