summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/chat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:46:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:46:33 +0000
commitd67cfd281f05bc48f6a8f1a2b3ebecc840f6c447 (patch)
tree0750ec06443aca68f749a46b0d060db00564b1e6 /usr.sbin/pppd/chat
parentaa0cb4643fc13729e7874a5eb16e9eecd90c1ced (diff)
stdlib.h is in scope; do not cast malloc/calloc/realloc*
Diffstat (limited to 'usr.sbin/pppd/chat')
-rw-r--r--usr.sbin/pppd/chat/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index bdacd72ac68..081290564f5 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.31 2015/02/09 23:00:14 deraadt Exp $ */
+/* $OpenBSD: chat.c,v 1.32 2015/08/20 22:46:32 deraadt Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -654,7 +654,7 @@ int sending; /* set to 1 when sending (putting) this string. */
new_length += 3; /* \r and two nuls */
- ret = (char *)malloc(new_length);
+ ret = malloc(new_length);
if (ret == NULL)
fatal(2, "cannot allocate memory");