summaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-18 15:28:20 +0000
committerRoy Marples <roy@marples.name>2008-09-18 15:28:20 +0000
commit39ea0cb84dd2eded881e1c77e758505dd08beb99 (patch)
treedb7ab94b2d89471359dc605d623d063025c84825 /src/rc/rc-misc.c
parent17bf78a53948a5e90c5b1f5d346cda1825d9a52e (diff)
downloadopenrc-39ea0cb84dd2eded881e1c77e758505dd08beb99.tar.gz
openrc-39ea0cb84dd2eded881e1c77e758505dd08beb99.tar.bz2
openrc-39ea0cb84dd2eded881e1c77e758505dd08beb99.tar.xz
Use the new rc_stringlist_find function.
Diffstat (limited to 'src/rc/rc-misc.c')
-rw-r--r--src/rc/rc-misc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index 22e2e30..bf03a35 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -124,7 +124,6 @@ void env_filter(void)
RC_STRINGLIST *profile = NULL;
RC_STRINGLIST *env_list;
RC_STRING *env;
- RC_STRING *s;
char *env_name;
char *e;
char *token;
@@ -162,10 +161,7 @@ void env_filter(void)
continue;
/* Check our user defined list */
- TAILQ_FOREACH(s, env_allow, entries)
- if (strcmp(s->value, env->value) == 0)
- break;
- if (s)
+ if (rc_stringlist_find(env_allow, env->value))
continue;
/* Now check our profile */