aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
commitb95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /editors/awk.c
parent2375d75f3267e6e4370f221fea485eac8e73d402 (diff)
downloadbusybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.bz2
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip
remove casts from xmalloc()
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 147c621ab..81ca9daf7 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -781,7 +781,7 @@ static var *nvalloc(int n)
781 781
782 if (! cb) { 782 if (! cb) {
783 size = (n <= MINNVBLOCK) ? MINNVBLOCK : n; 783 size = (n <= MINNVBLOCK) ? MINNVBLOCK : n;
784 cb = (nvblock *)xmalloc(sizeof(nvblock) + size * sizeof(var)); 784 cb = xmalloc(sizeof(nvblock) + size * sizeof(var));
785 cb->size = size; 785 cb->size = size;
786 cb->pos = cb->nv; 786 cb->pos = cb->nv;
787 cb->prev = pb; 787 cb->prev = pb;
@@ -2463,7 +2463,7 @@ re_cont:
2463 case XC( OC_CONCAT ): 2463 case XC( OC_CONCAT ):
2464 case XC( OC_COMMA ): 2464 case XC( OC_COMMA ):
2465 opn = strlen(L.s) + strlen(R.s) + 2; 2465 opn = strlen(L.s) + strlen(R.s) + 2;
2466 X.s = (char *)xmalloc(opn); 2466 X.s = xmalloc(opn);
2467 strcpy(X.s, L.s); 2467 strcpy(X.s, L.s);
2468 if ((opinfo & OPCLSMASK) == OC_COMMA) { 2468 if ((opinfo & OPCLSMASK) == OC_COMMA) {
2469 L.s = getvar_s(V[SUBSEP]); 2469 L.s = getvar_s(V[SUBSEP]);
@@ -2702,7 +2702,7 @@ keep_going:
2702 /* one byte is reserved for some trick in next_token */ 2702 /* one byte is reserved for some trick in next_token */
2703 if (fseek(F, 0, SEEK_END) == 0) { 2703 if (fseek(F, 0, SEEK_END) == 0) {
2704 flen = ftell(F); 2704 flen = ftell(F);
2705 s = (char *)xmalloc(flen+4); 2705 s = xmalloc(flen+4);
2706 fseek(F, 0, SEEK_SET); 2706 fseek(F, 0, SEEK_SET);
2707 i = 1 + fread(s+1, 1, flen, F); 2707 i = 1 + fread(s+1, 1, flen, F);
2708 } else { 2708 } else {