aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
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/rc/rc.c
parentb054a7251b91e2b95290dfd3760f942186c2d864 (diff)
strip trailing newlines
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 6fcbd981..567da725 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -8,7 +8,7 @@
einfo family of informational functions.
*/
-/*
+/*
* Copyright 2007-2008 Roy Marples
* All rights reserved
@@ -252,7 +252,7 @@ static int do_e (int argc, char **argv)
message = xmalloc (l);
p = message;
- for (i = 0; i < argc; i++) {
+ for (i = 0; i < argc; i++) {
if (i > 0)
*p++ = ' ';
memcpy (p, argv[i], strlen (argv[i]));
@@ -264,11 +264,11 @@ static int do_e (int argc, char **argv)
if (! message)
message = xstrdup ("");
- if (strcmp (applet, "einfo") == 0)
+ if (strcmp (applet, "einfo") == 0)
einfo ("%s", message);
else if (strcmp (applet, "einfon") == 0)
einfon ("%s", message);
- else if (strcmp (applet, "ewarn") == 0)
+ else if (strcmp (applet, "ewarn") == 0)
ewarn ("%s", message);
else if (strcmp (applet, "ewarnn") == 0)
ewarnn ("%s", message);
@@ -286,11 +286,11 @@ static int do_e (int argc, char **argv)
ewend (retval, "%s", message);
else if (strcmp (applet, "esyslog") == 0)
elog (level, "%s", message);
- else if (strcmp (applet, "veinfo") == 0)
+ else if (strcmp (applet, "veinfo") == 0)
einfov ("%s", message);
else if (strcmp (applet, "veinfon") == 0)
einfovn ("%s", message);
- else if (strcmp (applet, "vewarn") == 0)
+ else if (strcmp (applet, "vewarn") == 0)
ewarnv ("%s", message);
else if (strcmp (applet, "vewarnn") == 0)
ewarnvn ("%s", message);
@@ -494,7 +494,7 @@ static char *proc_getent (const char *ent)
if ((proc = rc_getline (fp)) &&
(p = strstr (proc, ent)))
- {
+ {
i = p - proc;
if (i == '\0' || proc[i - 1] == ' ') {
p += strlen (ent);