diff options
author | kevlo <kevlo@FreeBSD.org> | 2015-03-31 15:03:58 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2015-03-31 15:03:58 +0000 |
commit | a06b60def5d409592a46fe7f7801454b31a5f237 (patch) | |
tree | 9b658964246de91e4d6a3e3d2ac8c646177dfd6c /usr.bin/column/column.c | |
parent | ad5d4cffda22f1cc2c3bc4046c0f2a9e1d3f746c (diff) | |
download | FreeBSD-src-a06b60def5d409592a46fe7f7801454b31a5f237.zip FreeBSD-src-a06b60def5d409592a46fe7f7801454b31a5f237.tar.gz |
Remove bogus cast.
Diffstat (limited to 'usr.bin/column/column.c')
-rw-r--r-- | usr.bin/column/column.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index bc7aa32..b092deb 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -233,11 +233,11 @@ maketbl(void) wchar_t *last; if ((t = tbl = calloc(entries, sizeof(TBL))) == NULL) - err(1, (char *)NULL); + err(1, NULL); if ((cols = calloc((maxcols = DEFCOLS), sizeof(*cols))) == NULL) - err(1, (char *)NULL); + err(1, NULL); if ((lens = calloc(maxcols, sizeof(int))) == NULL) - err(1, (char *)NULL); + err(1, NULL); for (cnt = 0, lp = list; cnt < entries; ++cnt, ++lp, ++t) { for (coloff = 0, p = *lp; (cols[coloff] = wcstok(p, separator, &last)); @@ -253,9 +253,9 @@ maketbl(void) maxcols += DEFCOLS; } if ((t->list = calloc(coloff, sizeof(*t->list))) == NULL) - err(1, (char *)NULL); + err(1, NULL); if ((t->len = calloc(coloff, sizeof(int))) == NULL) - err(1, (char *)NULL); + err(1, NULL); for (t->cols = coloff; --coloff >= 0;) { t->list[coloff] = cols[coloff]; t->len[coloff] = width(cols[coloff]); @@ -284,7 +284,7 @@ input(FILE *fp) if (!list) if ((list = calloc((maxentry = DEFNUM), sizeof(*list))) == NULL) - err(1, (char *)NULL); + err(1, NULL); while (fgetws(buf, MAXLINELEN, fp)) { for (p = buf; *p && iswspace(*p); ++p); if (!*p) |