aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/checkpath/checkpath.c4
-rw-r--r--src/einfo/einfo.c2
-rw-r--r--src/fstabinfo/fstabinfo.c2
-rw-r--r--src/libeinfo/einfo.h2
-rw-r--r--src/librc/librc-misc.c2
-rw-r--r--src/librc/rc.h.in10
-rw-r--r--src/openrc-run/openrc-run.c4
-rw-r--r--src/openrc-shutdown/sysvinit.h2
-rw-r--r--src/openrc/rc.c8
-rw-r--r--src/rc-sstat/rc-sstat4
-rw-r--r--src/shared/plugin.h2
-rw-r--r--src/shared/queue.h4
-rw-r--r--src/supervise-daemon/supervise-daemon.c2
13 files changed, 24 insertions, 24 deletions
diff --git a/src/checkpath/checkpath.c b/src/checkpath/checkpath.c
index 34f5c452..de5d1b4a 100644
--- a/src/checkpath/checkpath.c
+++ b/src/checkpath/checkpath.c
@@ -1,6 +1,6 @@
/*
* checkpath.c
- * Checks for the existance of a file or directory and creates it
+ * Checks for the existence of a file or directory and creates it
* if necessary. It can also correct its ownership.
*/
@@ -67,7 +67,7 @@ const char * const longopts_help[] = {
"Create a named pipe (FIFO) if not exists",
"Mode to check",
"Owner to check (user:group)",
- "follow symbolic links (irrelivent on linux)",
+ "follow symbolic links (irrelevant on linux)",
"Check whether the path is writable or not",
longopts_help_COMMON
};
diff --git a/src/einfo/einfo.c b/src/einfo/einfo.c
index 1778efe4..691688ce 100644
--- a/src/einfo/einfo.c
+++ b/src/einfo/einfo.c
@@ -30,7 +30,7 @@
#include "einfo.h"
#include "helpers.h"
-/* usecs to wait while we poll the file existance */
+/* usecs to wait while we poll the file existence */
#define WAIT_INTERVAL 20000000
const char *applet = NULL;
diff --git a/src/fstabinfo/fstabinfo.c b/src/fstabinfo/fstabinfo.c
index ef7d0609..839e6e36 100644
--- a/src/fstabinfo/fstabinfo.c
+++ b/src/fstabinfo/fstabinfo.c
@@ -75,7 +75,7 @@ const struct option longopts[] = {
longopts_COMMON
};
const char * const longopts_help[] = {
- "Mounts the filesytem from the mountpoint",
+ "Mounts the filesystem from the mountpoint",
"Remounts the filesystem based on the information in fstab",
"Extract the block device",
"Show arguments needed to mount the entry",
diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h
index 557db92a..d9f1b54e 100644
--- a/src/libeinfo/einfo.h
+++ b/src/libeinfo/einfo.h
@@ -108,7 +108,7 @@ int ebegin(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2);
* eend places [ ok ] or [ !! ] at the end of the terminal line depending on
* retval (0 or ok, anything else for !!)
*
- * ebracket allows you to specifiy the position, color and message */
+ * ebracket allows you to specify the position, color and message */
/*@{*/
int eend(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3);
int ewend(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3);
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index b0edb942..6a3f3226 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -186,7 +186,7 @@ rc_config_list(const char *file)
if (token && (strlen(token) > 1)) {
/* If not variable assignment then skip */
if (strchr(token, '=')) {
- /* Stip the newline if present */
+ /* Strip the newline if present */
if (token[strlen(token) - 1] == '\n')
token[strlen(token) - 1] = 0;
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 39b1f520..651f317b 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -201,7 +201,7 @@ bool rc_service_add(const char *, const char *);
/*! Remove the service from the runlevel
* @param runlevel to remove from
* @param service to remove
- * @return true if sucessful, otherwise false */
+ * @return true if successful, otherwise false */
bool rc_service_delete(const char *, const char *);
/*! Save the arguments to find a running daemon
@@ -304,7 +304,7 @@ RC_STRINGLIST *rc_services_in_runlevel_stacked(const char *);
* @return NULL terminated list of services */
RC_STRINGLIST *rc_services_in_state(RC_SERVICE);
-/*! List the services shceduled to start when this one does
+/*! List the services scheduled to start when this one does
* @param service to check
* @return NULL terminated list of services */
RC_STRINGLIST *rc_services_scheduled(const char *);
@@ -450,9 +450,9 @@ RC_STRINGLIST *rc_deptree_depend(const RC_DEPTREE *, const char *, const char *)
RC_STRINGLIST *rc_deptree_depends(const RC_DEPTREE *, const RC_STRINGLIST *,
const RC_STRINGLIST *, const char *, int);
-/*! List all the services that should be stoppned and then started, in order,
+/*! List all the services that should be stopped and then started, in order,
* for the given runlevel, including sysinit and boot services where
- * approriate.
+ * appropriate.
* @param deptree to search
* @param runlevel to change into
* @param options to pass
@@ -528,7 +528,7 @@ bool rc_yesno(const char *);
/*! @name String List functions
* Every string list should be released with a call to rc_stringlist_free. */
-/*! Create a new stringlinst
+/*! Create a new stringlist
* @return pointer to new list */
RC_STRINGLIST *rc_stringlist_new(void);
diff --git a/src/openrc-run/openrc-run.c b/src/openrc-run/openrc-run.c
index f9056110..06d1a9d3 100644
--- a/src/openrc-run/openrc-run.c
+++ b/src/openrc-run/openrc-run.c
@@ -363,7 +363,7 @@ svc_exec(const char *arg1, const char *arg2)
* We do this instead of mapping pipes to stdout, stderr so that
* programs can tell if they're attached to a tty or not.
* The only loss is that we can no longer tell the difference
- * between the childs stdout or stderr */
+ * between the child's stdout or stderr */
master_tty = slave_tty = -1;
if (prefix && isatty(fdout)) {
tcgetattr(fdout, &tt);
@@ -1045,7 +1045,7 @@ svc_stop(void)
static void
svc_restart(void)
{
- /* This is hairly and a better way needs to be found I think!
+ /* This is hairy and a better way needs to be found I think!
* The issue is this - openvpn need net and dns. net can restart
* dns via resolvconf, so you could have openvpn trying to restart
* dnsmasq which in turn is waiting on net which in turn is waiting
diff --git a/src/openrc-shutdown/sysvinit.h b/src/openrc-shutdown/sysvinit.h
index 5e3077cf..64b4a85c 100644
--- a/src/openrc-shutdown/sysvinit.h
+++ b/src/openrc-shutdown/sysvinit.h
@@ -50,7 +50,7 @@ struct init_request_bsd {
/*
* Because of legacy interfaces, "runlevel" and "sleeptime"
- * aren't in a seperate struct in the union.
+ * aren't in a separate struct in the union.
*
* The weird sizes are because init expects the whole
* struct to be 384 bytes.
diff --git a/src/openrc/rc.c b/src/openrc/rc.c
index bab731ed..c1ca1bd7 100644
--- a/src/openrc/rc.c
+++ b/src/openrc/rc.c
@@ -562,7 +562,7 @@ do_stop_services(RC_STRINGLIST *types_nw, RC_STRINGLIST *start_services,
continue;
}
- /* If the service has crashed, skip futher checks and just stop
+ /* If the service has crashed, skip further checks and just stop
it */
if (crashed &&
rc_service_daemons_crashed(service->value))
@@ -584,7 +584,7 @@ do_stop_services(RC_STRINGLIST *types_nw, RC_STRINGLIST *start_services,
continue;
}
- /* We got this far. Last check is to see if any any service
+ /* We got this far. Last check is to see if any service
* that going to be started depends on us */
if (!svc1) {
tmplist = rc_stringlist_new();
@@ -877,7 +877,7 @@ int main(int argc, char **argv)
setenv("RC_RUNLEVEL", newlevel, 1);
setenv("RC_GOINGDOWN", "YES", 1);
} else {
- /* We should not use krunevel in sysinit or boot runlevels */
+ /* We should not use krunlevel in sysinit or boot runlevels */
if (!newlevel ||
(strcmp(newlevel, RC_LEVEL_SYSINIT) != 0 &&
strcmp(newlevel, getenv("RC_BOOTLEVEL")) != 0))
@@ -913,7 +913,7 @@ int main(int argc, char **argv)
#ifdef __FreeBSD__
/* FIXME: we shouldn't have todo this */
/* For some reason, wait_for_services waits for the logger
- * proccess to finish as well, but only on FreeBSD.
+ * process to finish as well, but only on FreeBSD.
* We cannot allow this so we stop logging now. */
rc_logger_close();
#endif
diff --git a/src/rc-sstat/rc-sstat b/src/rc-sstat/rc-sstat
index 4811293d..4f91e531 100644
--- a/src/rc-sstat/rc-sstat
+++ b/src/rc-sstat/rc-sstat
@@ -64,7 +64,7 @@ if [ -z $TERM -o $TERM = "dumb" ]; then
fi
# Gather list of candidate services s6-supervise may be supervising
-# filter for folders and symlinks at /run/openrc/s6-scan/* ommiting output starting with '.'
+# filter for folders and symlinks at /run/openrc/s6-scan/* omitting output starting with '.'
services="$(find $scandir -maxdepth 1 -mindepth 1 \( -type d -or -type l \) | awk -F'/' '{ if ( $NF !~ "^\\." ) print $NF}')"
if [ -z "$services" ]; then
printf "s6 found no services configured for supervision\n"
@@ -72,7 +72,7 @@ if [ -z "$services" ]; then
fi
# Gather status for each service from s6-svstat
-# write to tmp file in memory for non I/O bound repeatative access
+# write to tmp file in memory for non I/O bound repetitive access
rm -f $statfile 2>/dev/null
for service in $services ; do
echo "$service $(s6-svstat ${scandir}/${service})" >> $statfile
diff --git a/src/shared/plugin.h b/src/shared/plugin.h
index db4b6878..86ec1bfe 100644
--- a/src/shared/plugin.h
+++ b/src/shared/plugin.h
@@ -18,7 +18,7 @@
#ifndef __LIBRC_PLUGIN_H__
#define __LIBRC_PLUGIN_H__
-/* A simple flag to say if we're in a plugin proccess or not.
+/* A simple flag to say if we're in a plugin process or not.
* Mainly used in atexit code. */
extern bool rc_in_plugin;
diff --git a/src/shared/queue.h b/src/shared/queue.h
index 67f801d7..ddb7821d 100644
--- a/src/shared/queue.h
+++ b/src/shared/queue.h
@@ -664,7 +664,7 @@ struct { \
*/
/*
- * __launder_type(): We use this ugly hack to work around the the compiler
+ * __launder_type(): We use this ugly hack to work around the compiler
* noticing that two types may not alias each other and elide tests in code.
* We hit this in the CIRCLEQ macros when comparing 'struct name *' and
* 'struct type *' (see CIRCLEQ_HEAD()). Modern compilers (such as GCC
@@ -675,7 +675,7 @@ struct { \
* Do not use for assignment.
*
* If we ever choose to change the ABI of the CIRCLEQ macros, we could fix
- * this by changing the head/tail sentinal values, but see the note above
+ * this by changing the head/tail sentinel values, but see the note above
* this one.
*/
static __inline const void * __launder_type(const void *);
diff --git a/src/supervise-daemon/supervise-daemon.c b/src/supervise-daemon/supervise-daemon.c
index 194ef9df..a0576513 100644
--- a/src/supervise-daemon/supervise-daemon.c
+++ b/src/supervise-daemon/supervise-daemon.c
@@ -1,7 +1,7 @@
/*
* supervise-daemon
* This is a supervisor for daemons.
- * It will start a deamon and make sure it restarts if it crashes.
+ * It will start a daemon and make sure it restarts if it crashes.
*/
/*