diff options
author | Roy Marples <roy@marples.name> | 2007-09-18 12:04:51 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-18 12:04:51 +0000 |
commit | 936dc943512289a2692aa12ff666f6dd06b00d86 (patch) | |
tree | fdfe2dea1fa722136419bec0ad3e2d08a14b691f /src/env-update.c | |
parent | f1bba128929778c21168e84b8970f6623611dc6e (diff) |
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.
Diffstat (limited to 'src/env-update.c')
-rw-r--r-- | src/env-update.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |