summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/savestr.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/savestr.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/savestr.c')
-rw-r--r--usr.sbin/tcpdump/savestr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/savestr.c b/usr.sbin/tcpdump/savestr.c
index b0fc6df6fc0..2d8a253221f 100644
--- a/usr.sbin/tcpdump/savestr.c
+++ b/usr.sbin/tcpdump/savestr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savestr.c,v 1.8 2015/04/05 17:02:57 guenther Exp $ */
+/* $OpenBSD: savestr.c,v 1.9 2015/08/21 02:07:32 deraadt Exp $ */
/*
* Copyright (c) 1997
@@ -47,7 +47,7 @@ savestr(register const char *str)
strsize = 1024;
if (strsize < size)
strsize = size;
- strptr = (char *)malloc(strsize);
+ strptr = malloc(strsize);
if (strptr == NULL) {
fprintf(stderr, "savestr: malloc\n");
exit(1);