aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-23 21:31:22 +0000
committerRoy Marples <roy@marples.name>2009-04-23 21:31:22 +0000
commitade85d4bd81d7257f5a7e2e4ed40b9cbbbe23651 (patch)
tree278e8ec69f53fac2bc51b5122e6980e625ffeeca /src/rc/rc-misc.c
parent69534746553adb52d3ede38a4cf8cd3630c97091 (diff)
Improve style for KNF
Diffstat (limited to 'src/rc/rc-misc.c')
-rw-r--r--src/rc/rc-misc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index f86f1773..2382c2cb 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -1,7 +1,7 @@
/*
- librc-misc.c
- rc misc functions
- */
+ librc-misc.c
+ rc misc functions
+*/
/*
* Copyright 2007-2008 Roy Marples <roy@marples.name>
@@ -34,8 +34,8 @@
#include <sys/utsname.h>
#ifdef __linux__
-#include <sys/sysinfo.h>
-#include <regex.h>
+# include <sys/sysinfo.h>
+# include <regex.h>
#endif
#include <ctype.h>
@@ -244,7 +244,8 @@ env_config(void)
if (sys)
setenv("RC_SYS", sys, 1);
- /* Some scripts may need to take a different code path if Linux/FreeBSD, etc
+ /* Some scripts may need to take a different code path if
+ Linux/FreeBSD, etc
To save on calling uname, we store it in an environment variable */
if (uname(&uts) == 0)
setenv("RC_UNAME", uts.sysname, 1);
@@ -346,7 +347,7 @@ exec_service(const char *service, const char *arg)
/* Safe to run now */
execl(file, file, "--lockfd", sfd, arg, (char *) NULL);
fprintf(stderr, "unable to exec `%s': %s\n",
- file, strerror(errno));
+ file, strerror(errno));
svc_unlock(basename_c(service), fd);
_exit(EXIT_FAILURE);
}