aboutsummaryrefslogtreecommitdiff
path: root/src/rc-depend.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-10 11:24:58 +0000
committerRoy Marples <roy@marples.name>2007-04-10 11:24:58 +0000
commitd3db9e9910ef0a472feb27cf4a9ace78e431ddd9 (patch)
tree7e01917c209258b2f459f63ba42558c3beffb2f5 /src/rc-depend.c
parent662e308d86d63750fc1d939e68c2b5ee88fea593 (diff)
Fix indentation
Diffstat (limited to 'src/rc-depend.c')
-rw-r--r--src/rc-depend.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/rc-depend.c b/src/rc-depend.c
index 9d0b3af8..c6d0356b 100644
--- a/src/rc-depend.c
+++ b/src/rc-depend.c
@@ -38,43 +38,43 @@ int main (int argc, char **argv)
for (i = 1; i < argc; i++)
{
if (strcmp (argv[i], "--update") == 0)
- {
- if (! update)
- {
- rc_update_deptree (true);
- update = true;
- }
- continue;
- }
+ {
+ if (! update)
+ {
+ rc_update_deptree (true);
+ update = true;
+ }
+ continue;
+ }
if (strcmp (argv[i], "--strict") == 0)
- {
- options |= RC_DEP_STRICT;
- continue;
- }
+ {
+ options |= RC_DEP_STRICT;
+ continue;
+ }
if (strcmp (argv[i], "--notrace") == 0)
- {
- options &= RC_DEP_TRACE;
- continue;
- }
+ {
+ options &= RC_DEP_TRACE;
+ continue;
+ }
if (argv[i][0] == '-')
- {
- argv[i]++;
- types = rc_strlist_add (types, argv[i]);
- }
+ {
+ argv[i]++;
+ types = rc_strlist_add (types, argv[i]);
+ }
else
- {
- if ((deptree = rc_load_deptree ()) == NULL)
- eerrorx ("failed to load deptree");
-
- di = rc_get_depinfo (deptree, argv[i]);
- if (! di)
- eerror ("no dependency info for service `%s'", argv[i]);
- else
- services = rc_strlist_add (services, argv[i]);
- }
+ {
+ if ((deptree = rc_load_deptree ()) == NULL)
+ eerrorx ("failed to load deptree");
+
+ di = rc_get_depinfo (deptree, argv[i]);
+ if (! di)
+ eerror ("no dependency info for service `%s'", argv[i]);
+ else
+ services = rc_strlist_add (services, argv[i]);
+ }
}
if (! services)
@@ -82,7 +82,7 @@ int main (int argc, char **argv)
rc_strlist_free (types);
rc_free_deptree (deptree);
if (update)
- return (EXIT_SUCCESS);
+ return (EXIT_SUCCESS);
eerrorx ("no services specified");
}
@@ -98,16 +98,16 @@ int main (int argc, char **argv)
if (depends)
{
STRLIST_FOREACH (depends, service, i)
- {
- if (first)
- first = false;
- else
- printf (" ");
+ {
+ if (first)
+ first = false;
+ else
+ printf (" ");
- if (service)
- printf ("%s", service);
+ if (service)
+ printf ("%s", service);
- }
+ }
printf ("\n");
}