From b5635ba0a280a6f3829f5565395d4aad2d871736 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 1 May 2016 16:41:25 +0000 Subject: [PATCH] usr.sbin: minor spelling fixes on comments. No functional change. --- usr.sbin/camdd/camdd.c | 2 +- usr.sbin/cron/cron/cron.c | 4 ++-- usr.sbin/cron/cron/popen.c | 2 +- usr.sbin/ctladm/ctladm.c | 2 +- usr.sbin/gssd/gssd.c | 2 +- usr.sbin/jail/jailparse.y | 2 +- usr.sbin/lpr/common_source/common.c | 2 +- usr.sbin/lpr/lpd/recvjob.c | 4 ++-- usr.sbin/nandsim/nandsim_cfgparse.c | 2 +- usr.sbin/rtadvd/rtadvd.c | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/usr.sbin/camdd/camdd.c b/usr.sbin/camdd/camdd.c index 9284eb5459d..badfce114ef 100644 --- a/usr.sbin/camdd/camdd.c +++ b/usr.sbin/camdd/camdd.c @@ -446,7 +446,7 @@ static int need_status = 0; #endif -/* Generically usefull offsets into the peripheral private area */ +/* Generically useful offsets into the peripheral private area */ #define ppriv_ptr0 periph_priv.entries[0].ptr #define ppriv_ptr1 periph_priv.entries[1].ptr #define ppriv_field0 periph_priv.entries[0].field diff --git a/usr.sbin/cron/cron/cron.c b/usr.sbin/cron/cron/cron.c index 0cdb9e3af51..21243e77d9c 100644 --- a/usr.sbin/cron/cron/cron.c +++ b/usr.sbin/cron/cron/cron.c @@ -228,7 +228,7 @@ cron_tick(cron_db *db, int secres) register user *u; register entry *e; - /* make 0-based values out of these so we can use them as indicies + /* make 0-based values out of these so we can use them as indices */ second = (secres == 0) ? 0 : tm->tm_sec -FIRST_SECOND; minute = tm->tm_min -FIRST_MINUTE; @@ -289,7 +289,7 @@ cron_tick(cron_db *db, int secres) time_t difftime = TargetTime + tm->tm_gmtoff - diff; gmtime_r(&difftime, &otztm); - /* make 0-based values out of these so we can use them as indicies + /* make 0-based values out of these so we can use them as indices */ otzsecond = (secres == 0) ? 0 : otztm.tm_sec -FIRST_SECOND; otzminute = otztm.tm_min -FIRST_MINUTE; diff --git a/usr.sbin/cron/cron/popen.c b/usr.sbin/cron/cron/popen.c index 57b1f774570..01e62bf2bab 100644 --- a/usr.sbin/cron/cron/popen.c +++ b/usr.sbin/cron/cron/popen.c @@ -47,7 +47,7 @@ static const char rcsid[] = #define WANT_GLOBBING 0 /* - * Special version of popen which avoids call to shell. This insures noone + * Special version of popen which avoids call to shell. This insures no one * may create a pipe to a hidden program as a side effect of a list or dir * command. */ diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index 2e5817be460..16ce2879ed8 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -2922,7 +2922,7 @@ cctl_islist_end_element(void *user_data, const char *name) /* Nothing. */ } else { /* - * Unknown element; ignore it for forward compatiblity. + * Unknown element; ignore it for forward compatibility. */ } diff --git a/usr.sbin/gssd/gssd.c b/usr.sbin/gssd/gssd.c index f3e5ce969ed..7a001929488 100644 --- a/usr.sbin/gssd/gssd.c +++ b/usr.sbin/gssd/gssd.c @@ -64,7 +64,7 @@ __FBSDID("$FreeBSD$"); struct gss_resource { LIST_ENTRY(gss_resource) gr_link; - uint64_t gr_id; /* indentifier exported to kernel */ + uint64_t gr_id; /* identifier exported to kernel */ void* gr_res; /* GSS-API resource pointer */ }; LIST_HEAD(gss_resource_list, gss_resource) gss_resources; diff --git a/usr.sbin/jail/jailparse.y b/usr.sbin/jail/jailparse.y index d085eb8d914..515fc58cd68 100644 --- a/usr.sbin/jail/jailparse.y +++ b/usr.sbin/jail/jailparse.y @@ -60,7 +60,7 @@ __FBSDID("$FreeBSD$"); /* * A config file is a series of jails (containing parameters) and jail-less - * parameters which realy belong to a global pseudo-jail. + * parameters which really belong to a global pseudo-jail. */ conf : ; diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index ce0ba7cbbb3..0f960e8d090 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -640,7 +640,7 @@ trstat_write(struct printer *pp, tr_sendrecv sendrecv, size_t bytecnt, * a host as it receives a datafile. * user= - user who sent the job (if known) * secs= - seconds it took to transfer the file - * bytes= - number of bytes transfered (ie, "bytecount") + * bytes= - number of bytes transferred (ie, "bytecount") * bps=e - Bytes/sec (if the transfer was "big enough" * for this to be useful) * ! top= - type of printer (if the type is defined in diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c index ec8834c54f3..c7ee4e94993 100644 --- a/usr.sbin/lpr/lpd/recvjob.c +++ b/usr.sbin/lpr/lpd/recvjob.c @@ -140,7 +140,7 @@ recvjob(const char *printer) /* * Read printer jobs sent by lpd and copy them to the spooling directory. - * Return the number of jobs successfully transfered. + * Return the number of jobs successfully transferred. */ static int readjob(struct printer *pp) @@ -356,7 +356,7 @@ read_number(const char *fn) } /* - * Remove all the files associated with the current job being transfered. + * Remove all the files associated with the current job being transferred. */ static void rcleanup(int signo __unused) diff --git a/usr.sbin/nandsim/nandsim_cfgparse.c b/usr.sbin/nandsim/nandsim_cfgparse.c index a9b5eb121c2..2cbb89d3723 100644 --- a/usr.sbin/nandsim/nandsim_cfgparse.c +++ b/usr.sbin/nandsim/nandsim_cfgparse.c @@ -528,7 +528,7 @@ parse_config(char *cfgfname, const char *devfname) error("Controller#%d already created\n", ctrls[i].num); else if (err == EINVAL) - error("Incorrect controler number (%d)\n", + error("Incorrect controller number (%d)\n", ctrls[i].num); else error("Could not created controller#%d\n", diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index 76948116b78..9976c784c99 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -1223,7 +1223,7 @@ udiff(uint32_t u, uint32_t v) return (u >= v ? u - v : v - u); } -/* return a non-zero value if the received prefix is inconsitent with ours */ +/* return a non-zero value if the received prefix is inconsistent with ours */ static int prefix_check(struct nd_opt_prefix_info *pinfo, struct rainfo *rai, struct sockaddr_in6 *from)