summaryrefslogtreecommitdiffstats
path: root/usr.bin/col
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2015-03-31 15:03:58 +0000
committerkevlo <kevlo@FreeBSD.org>2015-03-31 15:03:58 +0000
commita06b60def5d409592a46fe7f7801454b31a5f237 (patch)
tree9b658964246de91e4d6a3e3d2ac8c646177dfd6c /usr.bin/col
parentad5d4cffda22f1cc2c3bc4046c0f2a9e1d3f746c (diff)
downloadFreeBSD-src-a06b60def5d409592a46fe7f7801454b31a5f237.zip
FreeBSD-src-a06b60def5d409592a46fe7f7801454b31a5f237.tar.gz
Remove bogus cast.
Diffstat (limited to 'usr.bin/col')
-rw-r--r--usr.bin/col/col.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c
index 52214857..e811a52 100644
--- a/usr.bin/col/col.c
+++ b/usr.bin/col/col.c
@@ -290,7 +290,7 @@ main(int argc, char **argv)
need = l->l_lsize ? l->l_lsize * 2 : 90;
if ((l->l_line = realloc(l->l_line,
(unsigned)need * sizeof(CHAR))) == NULL)
- err(1, (char *)NULL);
+ err(1, NULL);
l->l_lsize = need;
}
c = &l->l_line[l->l_line_len++];
@@ -410,13 +410,13 @@ flush_line(LINE *l)
sorted_size = l->l_lsize;
if ((sorted = realloc(sorted,
(unsigned)sizeof(CHAR) * sorted_size)) == NULL)
- err(1, (char *)NULL);
+ err(1, NULL);
}
if (l->l_max_col >= count_size) {
count_size = l->l_max_col + 1;
if ((count = realloc(count,
(unsigned)sizeof(int) * count_size)) == NULL)
- err(1, (char *)NULL);
+ err(1, NULL);
}
memset(count, 0, sizeof(int) * l->l_max_col + 1);
for (i = nchars, c = l->l_line; --i >= 0; c++)
@@ -510,7 +510,7 @@ alloc_line(void)
if (!line_freelist) {
if ((l = realloc(NULL, sizeof(LINE) * NALLOC)) == NULL)
- err(1, (char *)NULL);
+ err(1, NULL);
line_freelist = l;
for (i = 1; i < NALLOC; i++, l++)
l->l_next = l + 1;
OpenPOWER on IntegriCloud