summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/user.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-01-22 22:38:56 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-01-22 22:38:56 +0000
commit5d93423f0c620f4b2aec4599a450a33d687b9395 (patch)
treebcb519d2cf9ea48b80b5459619f6f59cf89043cc /usr.sbin/cron/user.c
parentf58066c858a659cccbe1f6a6b7019b989392657f (diff)
delete useless casts. ok deraadt guenther millert
Diffstat (limited to 'usr.sbin/cron/user.c')
-rw-r--r--usr.sbin/cron/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/user.c b/usr.sbin/cron/user.c
index 29643f424bb..bca609d071e 100644
--- a/usr.sbin/cron/user.c
+++ b/usr.sbin/cron/user.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.c,v 1.8 2009/10/27 23:59:51 deraadt Exp $ */
+/* $OpenBSD: user.c,v 1.9 2015/01/22 22:38:55 tedu Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -56,7 +56,7 @@ load_user(int crontab_fd, struct passwd *pw, const char *name) {
/* file is open. build user entry, then read the crontab file.
*/
- if ((u = (user *) malloc(sizeof(user))) == NULL)
+ if ((u = malloc(sizeof(user))) == NULL)
return (NULL);
if ((u->name = strdup(name)) == NULL) {
save_errno = errno;