diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-09-28 09:42:04 +0000 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-09-28 09:42:04 +0000 |
commit | a767ce58a0210c1ca21d7482d1208e3e0d916d15 (patch) | |
tree | aea3aad06302a4a89caabf09b8eb1473d7552f8b /src/curlhelper.c | |
parent | a499e649cf64e5f55037120e757c1b3cd459f668 (diff) | |
download | nagios-plugin-curl-a767ce58a0210c1ca21d7482d1208e3e0d916d15.tar.gz nagios-plugin-curl-a767ce58a0210c1ca21d7482d1208e3e0d916d15.tar.bz2 |
fixed some compiler warnings, added tests
Diffstat (limited to 'src/curlhelper.c')
-rw-r--r-- | src/curlhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curlhelper.c b/src/curlhelper.c index 3c44f2c..8b4d087 100644 --- a/src/curlhelper.c +++ b/src/curlhelper.c @@ -26,7 +26,7 @@ int curlhelp_initbuffer( curlhelp_curlbuf *buf ) { buf->bufsize = 2048; buf->buflen = 0; - buf->buf = (char *)malloc( 2048 ); + buf->buf = (char *)malloc( (size_t)2048 ); if( buf->buf == NULL ) return -1; return 0; } |