diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-14 05:05:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-14 05:05:22 +0000 |
commit | 6aab712cb4220c5a8471ba581c06676af19fae07 (patch) | |
tree | 2f343d11a00563fc5efd4baf81c082f280db4f96 /src/librc/librc-depend.c | |
parent | b054a7251b91e2b95290dfd3760f942186c2d864 (diff) |
strip trailing newlines
Diffstat (limited to 'src/librc/librc-depend.c')
-rw-r--r-- | src/librc/librc-depend.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index cfc887ea..b472c8a1 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -3,7 +3,7 @@ rc service dependency and ordering */ -/* +/* * Copyright 2007 Roy Marples * All rights reserved @@ -77,7 +77,7 @@ void rc_deptree_free (rc_depinfo_t *deptree) while (dt) { rc_deptype_t *dtp = dt->next; - free (dt->type); + free (dt->type); rc_strlist_free (dt->services); free (dt); dt = dtp; @@ -280,7 +280,7 @@ static char **get_provided (const rc_depinfo_t *deptree, const char *runlevel, int options) { rc_deptype_t *dt; - struct lhead providers; + struct lhead providers; char *service; int i; @@ -424,7 +424,7 @@ static void visit_service (const rc_depinfo_t *deptree, di = get_depinfo (deptree, service); if ((provides = get_provided (deptree, di, runlevel, options))) { - STRLIST_FOREACH (provides, lp, k) + STRLIST_FOREACH (provides, lp, k) { di = get_depinfo (deptree, lp); if (di && (strcmp (item, "ineed") == 0 || @@ -750,7 +750,7 @@ bool rc_deptree_update (void) depends = line; service = strsep (&depends, " "); if (! service) - goto next; + goto next; type = strsep (&depends, " "); for (depinfo = deptree; depinfo; depinfo = depinfo->next) @@ -775,7 +775,7 @@ bool rc_deptree_update (void) /* We may not have any depends */ if (! type || ! depends) - goto next; + goto next; /* Get the type */ if (strcmp (type, "config") != 0) { @@ -888,7 +888,7 @@ next: fprintf (stderr, "Service `%s' needs non existant service `%s'\n", depinfo->service, service); - } + } continue; } |