summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/rmjob.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/lpr/common_source/rmjob.c')
-rw-r--r--usr.sbin/lpr/common_source/rmjob.c8
1 files changed, 4 insertions, 4 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);
}
OpenPOWER on IntegriCloud