aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-14 05:05:22 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-14 05:05:22 +0000
commit6aab712cb4220c5a8471ba581c06676af19fae07 (patch)
tree2f343d11a00563fc5efd4baf81c082f280db4f96 /src/librc
parentb054a7251b91e2b95290dfd3760f942186c2d864 (diff)
strip trailing newlines
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-daemon.c4
-rw-r--r--src/librc/librc-depend.c14
-rw-r--r--src/librc/librc-depend.h2
-rw-r--r--src/librc/librc-misc.c4
-rw-r--r--src/librc/librc-strlist.c2
-rw-r--r--src/librc/librc.c8
-rw-r--r--src/librc/librc.h2
-rw-r--r--src/librc/rc.h8
8 files changed, 22 insertions, 22 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index 28c5adcf..e5fb2d53 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -3,7 +3,7 @@
Finds PID for given daemon criteria
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
@@ -234,7 +234,7 @@ pid_t *rc_find_pids (const char *exec, const char *cmd,
if ((argv = _KVM_GETARGV (kd, &kp[i], argc)) == NULL || ! *argv)
continue;
- if (strcmp (*argv, exec) != 0)
+ if (strcmp (*argv, exec) != 0)
continue;
}
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;
}
diff --git a/src/librc/librc-depend.h b/src/librc/librc-depend.h
index 238f70d1..1dfed166 100644
--- a/src/librc/librc-depend.h
+++ b/src/librc/librc-depend.h
@@ -3,7 +3,7 @@
* Internal header file for dependency structures
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index da52f980..7b3c3dfa 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -3,7 +3,7 @@
rc misc functions
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
@@ -218,7 +218,7 @@ char **rc_config_load (const char *file)
any prior values we may already have */
STRLIST_FOREACH (config, line, i) {
char *tmp = xstrdup (line);
- linep = tmp;
+ linep = tmp;
linetok = strsep (&linep, "=");
if (strcmp (linetok, entry) == 0) {
/* We have a match now - to save time we directly replace it */
diff --git a/src/librc/librc-strlist.c b/src/librc/librc-strlist.c
index ed3f10a6..b7dad736 100644
--- a/src/librc/librc-strlist.c
+++ b/src/librc/librc-strlist.c
@@ -5,7 +5,7 @@
Based on a previous implementation by Martin Schlemmer
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 436aa47f..0e35c8b8 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -1,9 +1,9 @@
/*
- librc
+ librc
core RC functions
*/
-/*
+/*
* Copyright 2007-2008 Roy Marples
* All rights reserved
@@ -71,7 +71,7 @@ static char **ls_dir (const char *dir, int options)
char **list = NULL;
struct stat buf;
- if ((dp = opendir (dir)) == NULL)
+ if ((dp = opendir (dir)) == NULL)
return (NULL);
while (((d = readdir (dp)) != NULL)) {
@@ -452,7 +452,7 @@ bool rc_service_mark (const char *service, const rc_service_state_t state)
state == RC_SERVICE_INACTIVE)
{
file = rc_strcatpaths (RC_SVCDIR, "exclusive", base, (char *) NULL);
- unlink (file);
+ unlink (file);
free (file);
}
diff --git a/src/librc/librc.h b/src/librc/librc.h
index 5907e62e..6b1e0314 100644
--- a/src/librc/librc.h
+++ b/src/librc/librc.h
@@ -3,7 +3,7 @@
* Internal header file to setup build env for files in librc.so
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
diff --git a/src/librc/rc.h b/src/librc/rc.h
index 465e5153..95247785 100644
--- a/src/librc/rc.h
+++ b/src/librc/rc.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
@@ -166,7 +166,7 @@ char **rc_services_scheduled_by (const char *service);
/*! Clear the list of services scheduled to be started by this service
* @param service to clear
- * @return true if no errors, otherwise false */
+ * @return true if no errors, otherwise false */
bool rc_service_schedule_clear (const char *service);
/*! Checks if a service in in a state
@@ -241,7 +241,7 @@ bool rc_service_daemons_crashed (const char *service);
/*! @name Dependencies
* We analyse each init script and cache the resultant dependency tree.
- * This tree can be accessed using the below functions. */
+ * This tree can be accessed using the below functions. */
#ifndef _IN_LIBRC
/* Handles to internal structures */
@@ -276,7 +276,7 @@ char **rc_deptree_depend (const rc_depinfo_t *deptree,
/*! List all the services in order that the given services have
* for the given types and options.
* @param deptree to search
- * @param types to use (ineed, iuse, etc)
+ * @param types to use (ineed, iuse, etc)
* @param services to check
* @param options to pass
* @return NULL terminated list of services in order */