diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-22 22:38:56 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-22 22:38:56 +0000 |
commit | 5d93423f0c620f4b2aec4599a450a33d687b9395 (patch) | |
tree | bcb519d2cf9ea48b80b5459619f6f59cf89043cc /usr.sbin/cron/atrun.c | |
parent | f58066c858a659cccbe1f6a6b7019b989392657f (diff) |
delete useless casts. ok deraadt guenther millert
Diffstat (limited to 'usr.sbin/cron/atrun.c')
-rw-r--r-- | usr.sbin/cron/atrun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c index 5a573d9415a..74b3ff955d0 100644 --- a/usr.sbin/cron/atrun.c +++ b/usr.sbin/cron/atrun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atrun.c,v 1.24 2015/01/19 01:05:32 deraadt Exp $ */ +/* $OpenBSD: atrun.c,v 1.25 2015/01/22 22:38:55 tedu Exp $ */ /* * Copyright (c) 2002-2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -91,7 +91,7 @@ scan_atjobs(at_db *old_db, struct timeval *tv) continue; queue = (unsigned char)ep[1]; - job = (atjob *)malloc(sizeof(*job)); + job = malloc(sizeof(*job)); if (job == NULL) { for (job = new_db.head; job != NULL; ) { tjob = job; @@ -392,7 +392,7 @@ run_job(atjob *job, char *atfile) log_close(); /* Connect grandchild's stdin to the at job file. */ - if (lseek(fd, (off_t) 0, SEEK_SET) < 0) { + if (lseek(fd, 0, SEEK_SET) < 0) { perror("lseek"); _exit(EXIT_FAILURE); } |