diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:28:43 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:28:43 +0000 |
commit | 861b647e7b1da564b831a5b07312a30feb7b6c58 (patch) | |
tree | 0bf8f137e7db222deefccc94fe3a22eecadba7d8 /lib/mprintf.c | |
parent | 70e57dad8856c2b99d947344661ae260c6fff594 (diff) |
remove unnecessary typecasting of realloc()
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 02a25f6de..255eb11df 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -1079,7 +1079,7 @@ static int alloc_addbyter(int output, FILE *data) else if(infop->len+1 >= infop->alloc) { char *newptr; - newptr = (char *)realloc(infop->buffer, infop->alloc*2); + newptr = realloc(infop->buffer, infop->alloc*2); if(!newptr) { infop->fail = 1; |