summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-lwres.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-21 02:07:32 +0000
committerderaadt <deraadt@openbsd.org>2015-08-21 02:07:32 +0000
commit323ce4b6a25b102eede47f50fe4517edb2cd96bf (patch)
treee7d30da336a6c8d1bdeb95d749904c0c26fc6551 /usr.sbin/tcpdump/print-lwres.c
parentFix typo: MODLUA_DEAFULT_VERSION to MODLUA_DEFAULT_VERSION. (diff)
downloadwireguard-openbsd-323ce4b6a25b102eede47f50fe4517edb2cd96bf.tar.xz
wireguard-openbsd-323ce4b6a25b102eede47f50fe4517edb2cd96bf.zip
since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw
Diffstat (limited to 'usr.sbin/tcpdump/print-lwres.c')
-rw-r--r--usr.sbin/tcpdump/print-lwres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-lwres.c b/usr.sbin/tcpdump/print-lwres.c
index 5f91bcc8396..d4f77505214 100644
--- a/usr.sbin/tcpdump/print-lwres.c
+++ b/usr.sbin/tcpdump/print-lwres.c
@@ -277,11 +277,11 @@ lwres_printb64len(const char *p0)
if (p + 2 + l > (u_int8_t *)snapend)
goto trunc;
- dbuf = (char *)malloc(l + 1);
+ dbuf = malloc(l + 1);
if (!dbuf)
return -1;
- b64buf = (char *)malloc((l + 2) * 4 / 3);
+ b64buf = malloc((l + 2) * 4 / 3);
if (!b64buf)
{
free(dbuf);