[hackers] [sbase] sort: linebuf is no global || Jakob Kramer

From: <git_AT_suckless.org>
Date: Sun, 04 May 2014 01:14:54 +0200

commit c4e5354a32a311b0a0636ff7223d914ef7926c36
Author: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sat May 3 18:28:20 2014 +0200

    sort: linebuf is no global

diff --git a/sort.c b/sort.c
index 6c3b6f9..4b98cd9 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -35,8 +35,6 @@ static bool rflag = false;
 static bool uflag = false;
 static bool nflag = false;
 
-static struct linebuf linebuf = EMPTY_LINEBUF;
-
 static void
 usage(void)
 {
_AT_@ -48,6 +46,7 @@ main(int argc, char *argv[])
 {
         long i;
         FILE *fp;
+ struct linebuf linebuf = EMPTY_LINEBUF;
 
         ARGBEGIN {
         case 'n':
Received on Sun May 04 2014 - 01:14:54 CEST

This archive was generated by hypermail 2.3.0 : Sun May 04 2014 - 01:24:07 CEST