summaryrefslogtreecommitdiff
path: root/bin/ksh/jobs.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-09-17 14:21:34 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-09-17 14:21:34 +0000
commite3c6a3e4ae613c65373f4d1596224e9f7dfdf9dc (patch)
tree9867f26c459e51e311104a5f8da3146d079bc817 /bin/ksh/jobs.c
parent0521c7daa6153cab29766f394c49b3f0bdbe6195 (diff)
Remove unnecessary casts, from Michael McConville. No binary change.
Diffstat (limited to 'bin/ksh/jobs.c')
-rw-r--r--bin/ksh/jobs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c
index b57ba18d43f..f12a3ddeca2 100644
--- a/bin/ksh/jobs.c
+++ b/bin/ksh/jobs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jobs.c,v 1.45 2015/09/15 18:15:05 tedu Exp $ */
+/* $OpenBSD: jobs.c,v 1.46 2015/09/17 14:21:33 nicm Exp $ */
/*
* Process and job control
@@ -1535,7 +1535,7 @@ new_job(void)
newj = free_jobs;
free_jobs = free_jobs->next;
} else
- newj = (Job *) alloc(sizeof(Job), APERM);
+ newj = alloc(sizeof(Job), APERM);
/* brute force method */
for (i = 1; ; i++) {
@@ -1562,7 +1562,7 @@ new_proc(void)
p = free_procs;
free_procs = free_procs->next;
} else
- p = (Proc *) alloc(sizeof(Proc), APERM);
+ p = alloc(sizeof(Proc), APERM);
return p;
}