From c6990e369d27adf3367d651f28b595423d1c3968 Mon Sep 17 00:00:00 2001 From: tedu Date: Mon, 9 Feb 2015 14:42:44 +0000 Subject: more decasting --- usr.sbin/zic/scheck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/zic') diff --git a/usr.sbin/zic/scheck.c b/usr.sbin/zic/scheck.c index 661cc9d448b..ffe969e6fd3 100644 --- a/usr.sbin/zic/scheck.c +++ b/usr.sbin/zic/scheck.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheck.c,v 1.2 2015/02/09 13:03:59 tedu Exp $ */ +/* $OpenBSD: scheck.c,v 1.3 2015/02/09 14:42:44 tedu Exp $ */ /* ** This file is in the public domain, so clarified as of ** 2006-07-17 by Arthur David Olson. @@ -23,7 +23,7 @@ const char * const format; result = ""; if (string == NULL || format == NULL) return result; - fbuf = malloc((int) (2 * strlen(format) + 4)); + fbuf = malloc(2 * strlen(format) + 4); if (fbuf == NULL) return result; fp = format; @@ -52,7 +52,7 @@ const char * const format; *tp++ = 'c'; *tp = '\0'; if (sscanf(string, fbuf, &dummy) != 1) - result = (char *) format; + result = format; free(fbuf); return result; } -- cgit v1.2.3-59-g8ed1b