From 936dc943512289a2692aa12ff666f6dd06b00d86 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 18 Sep 2007 12:04:51 +0000 Subject: API change! rc_ls_dir, rc_get_config and rc_get_list no longer take a starting list as a first argument. Instead, use rc_strlist_join to append or prepend the new list to an existing list. --- src/env-update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/env-update.c') diff --git a/src/env-update.c b/src/env-update.c index 516f3580..fba671b4 100644 --- a/src/env-update.c +++ b/src/env-update.c @@ -85,7 +85,7 @@ static struct option longopts[] = { int env_update (int argc, char **argv) { - char **files = rc_ls_dir (NULL, ENVDIR, 0); + char **files = rc_ls_dir (ENVDIR, 0); char *file; char **envs = NULL; char *env; @@ -138,7 +138,7 @@ int env_update (int argc, char **argv) *(file + j - 1) != '~' && (j < 4 || strcmp (file + j - 4, ".bak") != 0) && (j < 5 || strcmp (file + j - 5, ".core") != 0)) - entries = rc_get_config (NULL, path); + entries = rc_get_config (path); free (path); STRLIST_FOREACH (entries, entry, j) { @@ -293,7 +293,7 @@ int env_update (int argc, char **argv) if (ldconfig) { /* Update ld.so.conf only if different */ if (rc_exists (LDSOCONF)) { - char **lines = rc_get_list (NULL, LDSOCONF); + char **lines = rc_get_list (LDSOCONF); char *line; ld = false; -- cgit v1.2.3