diff options
author | uqs <uqs@FreeBSD.org> | 2011-12-30 10:58:14 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2011-12-30 10:58:14 +0000 |
commit | 415a3a9b966c1522657d435a1785904f41accc78 (patch) | |
tree | 8895a44928d5c242eb33f5909e96b16aa8b19f50 /usr.sbin/lpr | |
parent | c12910138c122eb89614cb32832cc1e81e4c23a7 (diff) | |
download | FreeBSD-src-415a3a9b966c1522657d435a1785904f41accc78.zip FreeBSD-src-415a3a9b966c1522657d435a1785904f41accc78.tar.gz |
Spelling fixes for usr.sbin/
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/common_source/rmjob.c | 8 | ||||
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 8 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/pac/pac.c | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c index 2a6b0e9..912a48f 100644 --- a/usr.sbin/lpr/common_source/rmjob.c +++ b/usr.sbin/lpr/common_source/rmjob.c @@ -78,7 +78,7 @@ void rmjob(const char *printer) { register int i, nitems; - int assasinated = 0; + int assassinated = 0; struct dirent **files; char *cp; struct printer myprinter, *pp = &myprinter; @@ -125,9 +125,9 @@ rmjob(const char *printer) */ if (lockchk(pp, pp->lock_file) && chk(current)) { seteuid(euid); - assasinated = kill(cur_daemon, SIGINT) == 0; + assassinated = kill(cur_daemon, SIGINT) == 0; seteuid(uid); - if (!assasinated) + if (!assassinated) fatal(pp, "cannot kill printer daemon"); } /* @@ -140,7 +140,7 @@ rmjob(const char *printer) /* * Restart the printer daemon if it was killed */ - if (assasinated && !startdaemon(pp)) + if (assassinated && !startdaemon(pp)) fatal(pp, "cannot restart printer daemon\n"); exit(0); } diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index f8843f9..287825f 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -496,7 +496,7 @@ sortq(const void *a, const void *b) fname_b = (*(const struct dirent * const *)b)->d_name; /* - * First separate filenames into cagatories. Catagories are + * First separate filenames into categories. Categories are * legitimate `cf', `df', `rf' & `tf' filenames, and "other" - in * that order. It is critical that the mapping be exactly the * same for 'a' vs 'b', so define a macro for the job. @@ -562,7 +562,7 @@ sortq(const void *a, const void *b) /* * We have two files which belong to the same job. Sort based - * on the catagory of file (`c' before `d', etc). + * on the category of file (`c' before `d', etc). */ if (cat_a < cat_b) { res = a_lt_b; @@ -573,8 +573,8 @@ sortq(const void *a, const void *b) } /* - * Two files in the same catagory for a single job. Sort based - * on the sequence letter(s). (usually `A' thru `Z', etc). + * Two files in the same category for a single job. Sort based + * on the sequence letter(s). (usually `A' through `Z', etc). */ if (seq_a < seq_b) { res = a_lt_b; diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index ca5fc11..2407c3c 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -604,7 +604,7 @@ pass2: /* * Print a file. * Set up the chain [ PR [ | {IF, OF} ] ] or {IF, RF, TF, NF, DF, CF, VF}. - * Return -1 if a non-recoverable error occured, + * Return -1 if a non-recoverable error occurred, * 2 if the filter detected some errors (but printed the job anyway), * 1 if we should try to reprint this job and * 0 if all is well. @@ -887,7 +887,7 @@ start: /* * Send the daemon control file (cf) and any data files. - * Return -1 if a non-recoverable error occured, 1 if a recoverable error and + * Return -1 if a non-recoverable error occurred, 1 if a recoverable error and * 0 if all is well. */ static int diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index 9cc9708..5fdd54f 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -203,7 +203,7 @@ usage(void) * Read the entire accounting file, accumulating statistics * for the users that we have in the hash table. If allflag * is set, then just gather the facts on everyone. - * Note that we must accomodate both the active and summary file + * Note that we must accommodate both the active and summary file * formats here. * Host names are ignored if the -m flag is present. */ |