Work with -pedantic!

This commit is contained in:
Ben Laurie
1999-04-23 15:01:15 +00:00
parent 779cc0bca9
commit 61f5b6f338
78 changed files with 1040 additions and 880 deletions

View File

@@ -64,7 +64,7 @@ BUF_MEM *BUF_MEM_new(void)
{
BUF_MEM *ret;
ret=(BUF_MEM *)Malloc(sizeof(BUF_MEM));
ret=Malloc(sizeof(BUF_MEM));
if (ret == NULL)
{
BUFerr(BUF_F_BUF_MEM_NEW,ERR_R_MALLOC_FAILURE);
@@ -101,15 +101,15 @@ int BUF_MEM_grow(BUF_MEM *str, int len)
}
if (str->max >= len)
{
memset(&(str->data[str->length]),0,len-str->length);
memset(&str->data[str->length],0,len-str->length);
str->length=len;
return(len);
}
n=(len+3)/3*4;
if (str->data == NULL)
ret=(char *)Malloc(n);
ret=Malloc(n);
else
ret=(char *)Realloc(str->data,n);
ret=Realloc(str->data,n);
if (ret == NULL)
{
BUFerr(BUF_F_BUF_MEM_GROW,ERR_R_MALLOC_FAILURE);