summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-19 16:14:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-19 16:14:55 +0000
commitdd7fc77280a00a7fb80b139254ca5efde481e53f (patch)
treee046aa589fa416033f186f6cf1fec8f760564546
parentfc9eb5e81565eee977f65cfdeedd6dd289e5adb8 (diff)
do not cast result from xcalloc(); it is in scope
-rw-r--r--usr.sbin/smtpd/parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index e6a45a4c257..e65dc4d71a0 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.152 2015/02/08 04:50:32 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.153 2015/08/19 16:14:54 deraadt Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -2251,8 +2251,7 @@ is_if_in_group(const char *ifname, const char *groupname)
}
len = ifgr.ifgr_len;
- ifgr.ifgr_groups =
- (struct ifg_req *)xcalloc(len/sizeof(struct ifg_req),
+ ifgr.ifgr_groups = xcalloc(len/sizeof(struct ifg_req),
sizeof(struct ifg_req), "is_if_in_group");
if (ioctl(s, SIOCGIFGROUP, (caddr_t)&ifgr) == -1)
err(1, "SIOCGIFGROUP");