diff options
author | tedu <tedu@openbsd.org> | 2015-02-09 14:42:44 +0000 |
---|---|---|
committer | tedu <tedu@openbsd.org> | 2015-02-09 14:42:44 +0000 |
commit | c6990e369d27adf3367d651f28b595423d1c3968 (patch) | |
tree | 0ccea85b3b1c03e674fa6d81aa20fa5d0d42ccf6 /usr.sbin/zic | |
parent | delete lots of unnecessary or incorrect casts, including among other minor (diff) | |
download | wireguard-openbsd-c6990e369d27adf3367d651f28b595423d1c3968.tar.xz wireguard-openbsd-c6990e369d27adf3367d651f28b595423d1c3968.zip |
more decasting
Diffstat (limited to 'usr.sbin/zic')
-rw-r--r-- | usr.sbin/zic/scheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |