From f1bba128929778c21168e84b8970f6623611dc6e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 18 Sep 2007 11:36:55 +0000 Subject: API change! rc_strlist_add and friends now take char *** instead of char ** and return a pointer to the item added instead of the new list head. This is so we can easily tell if the item was successfully added or not instead of iterating through the list looking for it. list = rc_strlist_add (list, item); becomes rc_strlist_add (&list, item); --- src/start-stop-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/start-stop-daemon.c') diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index 51e4dee8..76158c65 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -880,10 +880,10 @@ int start_stop_daemon (int argc, char **argv) len = sizeof (char *) * strlen (path) + 6; newpath = rc_xmalloc (len); snprintf (newpath, len, "PATH=%s", path); - newenv = rc_strlist_add (newenv, newpath); + rc_strlist_add (&newenv, newpath); free (newpath); } else - newenv = rc_strlist_add (newenv, env); + rc_strlist_add (&newenv, env); } umask (022); -- cgit v1.2.3