summaryrefslogtreecommitdiffstats
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-10-08 02:11:54 +0000
committerderaadt <deraadt@openbsd.org>2014-10-08 02:11:54 +0000
commite0e27c8121c05b82114bc806aa712be80b6cd4dc (patch)
tree8d5eb8556f0bd47216f91fa5914a09f1bcfebb24 /usr.sbin/authpf
parentdo not need a cast from void * (diff)
downloadwireguard-openbsd-e0e27c8121c05b82114bc806aa712be80b6cd4dc.tar.xz
wireguard-openbsd-e0e27c8121c05b82114bc806aa712be80b6cd4dc.zip
remove stupid cast
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index 0d294f1cef1..7b7fba83eed 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.120 2014/04/02 02:12:24 deraadt Exp $ */
+/* $OpenBSD: authpf.c,v 1.121 2014/10/08 02:11:54 deraadt Exp $ */
/*
* Copyright (C) 1998 - 2007 Bob Beck (beck@openbsd.org).
@@ -502,7 +502,7 @@ allowed_luser(struct passwd *pw)
if (buf[len - 1] == '\n')
buf[len - 1] = '\0';
else {
- if ((lbuf = (char *)malloc(len + 1)) == NULL)
+ if ((lbuf = malloc(len + 1)) == NULL)
err(1, NULL);
memcpy(lbuf, buf, len);
lbuf[len] = '\0';