From a9ba31f9edba58e8d2eb3186fa29f7973be98354 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 18 Aug 2015 17:36:00 +0000 Subject: calloc() is prototyped; do not cast result --- libexec/ftpd/ftpcmd.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ftpd/ftpcmd.y') diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index a853b9b3ff0..fd4dd477159 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.59 2015/03/17 19:31:30 millert Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.60 2015/08/18 17:35:59 deraadt Exp $ */ /* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */ /* @@ -681,7 +681,7 @@ username password : /* empty */ { - $$ = (char *)calloc(1, sizeof(char)); + $$ = calloc(1, sizeof(char)); } | STRING ; -- cgit v1.2.3