diff options
author | Roy Marples <roy@marples.name> | 2008-02-19 19:43:31 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-19 19:43:31 +0000 |
commit | d7129163ce6561f786e7722d70cb99c3f96891fa (patch) | |
tree | 9a243b98613ecbc386496eea94ce311094486028 /src/librc | |
parent | 7406537363ee8f1eac505b7f915bf33666a0d0be (diff) |
Fix compile warning, and free removed depinfo's
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc-depend.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |