summaryrefslogtreecommitdiff
path: root/usr.bin/at/at.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/at/at.c')
-rw-r--r--usr.bin/at/at.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 080d2e853dc..e9c8528415d 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.64 2014/10/08 03:56:52 doug Exp $ */
+/* $OpenBSD: at.c,v 1.65 2015/08/20 22:32:41 deraadt Exp $ */
/*
* at.c : Put file into atrun queue
@@ -514,7 +514,7 @@ list_jobs(int argc, char **argv, int count_only, int csort)
*/
numjobs = 0;
maxjobs = stbuf.st_nlink + 4;
- atjobs = (struct atjob **)calloc(maxjobs, sizeof(struct atjob *));
+ atjobs = calloc(maxjobs, sizeof(struct atjob *));
if (atjobs == NULL)
panic("Insufficient virtual memory");
@@ -561,7 +561,7 @@ list_jobs(int argc, char **argv, int count_only, int csort)
continue;
}
- job = (struct atjob *)malloc(sizeof(struct atjob));
+ job = malloc(sizeof(struct atjob));
if (job == NULL)
panic("Insufficient virtual memory");
job->runtimer = runtimer;