From d7129163ce6561f786e7722d70cb99c3f96891fa Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 19 Feb 2008 19:43:31 +0000 Subject: Fix compile warning, and free removed depinfo's --- src/librc/librc-depend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/librc') diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 97e558af..afed7f9b 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -874,7 +874,7 @@ next: nosys[0] = 'n'; nosys[1] = 'o'; for (i = 0; i < len; i++) - nosys[i + 2] = tolower (sys[i]); + nosys[i + 2] = (char) tolower ((int) sys[i]); nosys[i + 2] = '\0'; last_depinfo = NULL; @@ -897,6 +897,8 @@ next: for (dt = di->depends; dt; dt = dt->next) rc_strlist_delete (&dt->services, depinfo->service); } + depinfo->next = NULL; + rc_deptree_free (depinfo); } else last_depinfo = depinfo; } -- cgit v1.2.3