Nuke another freelist()
This commit is contained in:
parent
fb85f99c0a
commit
153b8428b1
2
TODO
2
TODO
|
@ -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
|
suckless.org. As a first step we should rework existing tools that use
|
||||||
wide characters to use the libutf library.
|
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.
|
manpages for more information.
|
||||||
|
|
||||||
[0] http://landley.net/toybox/roadmap.html
|
[0] http://landley.net/toybox/roadmap.html
|
||||||
|
|
14
sort.c
14
sort.c
|
@ -33,7 +33,6 @@ static struct kdlist *tail = NULL;
|
||||||
|
|
||||||
static void addkeydef(char *, int);
|
static void addkeydef(char *, int);
|
||||||
static void check(FILE *);
|
static void check(FILE *);
|
||||||
static void freelist(void);
|
|
||||||
static int linecmp(const char **, const char **);
|
static int linecmp(const char **, const char **);
|
||||||
static char *skipblank(char *);
|
static char *skipblank(char *);
|
||||||
static int parse_flags(char **, int *, int);
|
static int parse_flags(char **, int *, int);
|
||||||
|
@ -124,7 +123,6 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
freelist();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
static int
|
||||||
linecmp(const char **a, const char **b)
|
linecmp(const char **a, const char **b)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user