[hackers] [sbase] Nuke another freelist() || sin

From: <git_AT_suckless.org>
Date: Tue, 16 Dec 2014 22:02:08 +0100

commit 153b8428b1b0095ca877573e2c310aa4e49ba0f2
Author: sin <sin_AT_2f30.org>
Date: Tue Dec 16 21:00:19 2014 +0000

    Nuke another freelist()

diff --git a/TODO b/TODO
index af5cfec..658df7b 100644
--- a/TODO
+++ b/TODO
_AT_@ -35,7 +35,7 @@ We also need to add support for UTF-8. We have imported libutf from
 suckless.org. As a first step we should rework existing tools that use
 wide characters to use the libutf library.
 
-Update manpages to the new style. Look at cmp.1 or at the OpenBSD
+Update manpages to the new style. Look at grep.1 or at the OpenBSD
 manpages for more information.
 
 [0] http://landley.net/toybox/roadmap.html
diff --git a/sort.c b/sort.c
index c4cd81f..d46a84b 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -33,7 +33,6 @@ static struct kdlist *tail = NULL;
 
 static void addkeydef(char *, int);
 static void check(FILE *);
-static void freelist(void);
 static int linecmp(const char **, const char **);
 static char *skipblank(char *);
 static int parse_flags(char **, int *, int);
_AT_@ -124,7 +123,6 @@ main(int argc, char *argv[])
                 }
         }
 
- freelist();
         return 0;
 }
 
_AT_@ -165,18 +163,6 @@ check(FILE *fp)
         }
 }
 
-static void
-freelist(void)
-{
- struct kdlist *node;
- struct kdlist *tmp;
-
- for (node = head; node; node = tmp) {
- tmp = node->next;
- free(node);
- }
-}
-
 static int
 linecmp(const char **a, const char **b)
 {
Received on Tue Dec 16 2014 - 22:02:08 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 16 2014 - 22:12:09 CET