diff options
author | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
commit | b95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch) | |
tree | 0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /editors/awk.c | |
parent | 2375d75f3267e6e4370f221fea485eac8e73d402 (diff) | |
download | busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz |
remove casts from xmalloc()
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/awk.c b/editors/awk.c index 147c621..81ca9da 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -781,7 +781,7 @@ static var *nvalloc(int n) if (! cb) { size = (n <= MINNVBLOCK) ? MINNVBLOCK : n; - cb = (nvblock *)xmalloc(sizeof(nvblock) + size * sizeof(var)); + cb = xmalloc(sizeof(nvblock) + size * sizeof(var)); cb->size = size; cb->pos = cb->nv; cb->prev = pb; @@ -2463,7 +2463,7 @@ re_cont: case XC( OC_CONCAT ): case XC( OC_COMMA ): opn = strlen(L.s) + strlen(R.s) + 2; - X.s = (char *)xmalloc(opn); + X.s = xmalloc(opn); strcpy(X.s, L.s); if ((opinfo & OPCLSMASK) == OC_COMMA) { L.s = getvar_s(V[SUBSEP]); @@ -2702,7 +2702,7 @@ keep_going: /* one byte is reserved for some trick in next_token */ if (fseek(F, 0, SEEK_END) == 0) { flen = ftell(F); - s = (char *)xmalloc(flen+4); + s = xmalloc(flen+4); fseek(F, 0, SEEK_SET); i = 1 + fread(s+1, 1, flen, F); } else { |