=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/unifdef/unifdef.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- src/usr.bin/unifdef/unifdef.c 2015/12/10 22:52:12 1.27 +++ src/usr.bin/unifdef/unifdef.c 2016/03/15 01:00:17 1.28 @@ -1537,7 +1537,7 @@ if (len < 0) err(2, "snprintf"); size = (size_t)len + 1; - s = malloc(size); + s = (char *)malloc(size); if (s == NULL) err(2, "malloc"); snprintf(s, size, "%s%s", s1, s2); @@ -1555,7 +1555,7 @@ if (end < start) abort(); /* bug */ n = (size_t)(end - start) + 1; - s = malloc(n); + s = (char *)malloc(n); if (s == NULL) err(2, "malloc"); snprintf(s, n, "%s", start);