diff options
author | 2019-03-09 19:55:47 +0100 | |
---|---|---|
committer | 2019-03-09 19:58:23 +0100 | |
commit | affdba842a41c49b71911109272186acf36cfd8a (patch) | |
tree | d204e4b684260ae6759e06aeb99a96fa3d64a0dd /libq/rmspace.c | |
parent | rmspace: add copyright (diff) | |
download | portage-utils-affdba842a41c49b71911109272186acf36cfd8a.tar.gz portage-utils-affdba842a41c49b71911109272186acf36cfd8a.tar.bz2 portage-utils-affdba842a41c49b71911109272186acf36cfd8a.zip |
libq: introduce set to replace virtuals (queue)
The virtuals file contained some queue functions which actually were
list functions. Replaced this with a proper set, which hash backend to
speed up many search operations. Changed throughout the code to use
more efficient path.
While at it, merge xstrdup wrappers in xmalloc, and use wrappers more
consistently.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'libq/rmspace.c')
-rw-r--r-- | libq/rmspace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libq/rmspace.c b/libq/rmspace.c index 40c3808..3159b08 100644 --- a/libq/rmspace.c +++ b/libq/rmspace.c @@ -7,7 +7,6 @@ * Copyright 2019- Fabian Groffen - <grobian@gentoo.org> */ - /* remove leading/trailing extraneous white space */ static char *rmspace_len(char *s, size_t len) { |