chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
445e4fc
)
lib/configuration.c: Remove `type_stringlist', which nothing was using.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 17 Nov 2017 22:15:13 +0000
(22:15 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 26 Nov 2017 14:08:35 +0000
(14:08 +0000)
lib/configuration.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/configuration.c
b/lib/configuration.c
index 2ef3a5ed310e3ef68b2da000882e99641b07dbc2..c2f0791c9c9ae47c1f3615daabad70664be20b6f 100644
(file)
--- a/
lib/configuration.c
+++ b/
lib/configuration.c
@@
-267,22
+267,6
@@
static int set_string(const struct config_state *cs,
return 0;
}
return 0;
}
-static int set_stringlist(const struct config_state *cs,
- const struct conf *whoami,
- int nvec, char **vec) {
- int n;
- struct stringlist *sl;
-
- sl = ADDRESS(cs->config, struct stringlist);
- sl->n = 0;
- for(n = 0; n < nvec; ++n) {
- sl->n++;
- sl->s = xrealloc(sl->s, (sl->n * sizeof (char *)));
- sl->s[sl->n - 1] = xstrdup(vec[n]);
- }
- return 0;
-}
-
static int set_integer(const struct config_state *cs,
const struct conf *whoami,
int nvec, char **vec) {
static int set_integer(const struct config_state *cs,
const struct conf *whoami,
int nvec, char **vec) {
@@
-634,7
+618,6
@@
static const struct conftype
type_collections = { set_collections, free_collectionlist },
type_boolean = { set_boolean, free_none },
type_string = { set_string, free_string },
type_collections = { set_collections, free_collectionlist },
type_boolean = { set_boolean, free_none },
type_string = { set_string, free_string },
- type_stringlist = { set_stringlist, free_stringlist },
type_integer = { set_integer, free_none },
type_stringlist_accum = { set_stringlist_accum, free_stringlistlist },
type_string_accum = { set_string_accum, free_stringlist },
type_integer = { set_integer, free_none },
type_stringlist_accum = { set_stringlist_accum, free_stringlistlist },
type_string_accum = { set_string_accum, free_stringlist },