summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2012-07-05 10:26:01 +0000
committerKeith Bostic <keith@wiredtiger.com>2012-07-05 10:26:01 +0000
commit78fa178d41725eb9714a98d6390a696c7a68b43a (patch)
treea39a24c80c29ebb784b37c1de198a5324e3a4914 /ext
parentd9b30b7a7afa517f551c45c2763a343d32b32aa1 (diff)
downloadmongo-78fa178d41725eb9714a98d6390a696c7a68b43a.tar.gz
lint
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/bzip2_compress/bzip2_compress.c5
-rw-r--r--ext/compressors/snappy_compress/snappy_compress.c1
2 files changed, 2 insertions, 4 deletions
diff --git a/ext/compressors/bzip2_compress/bzip2_compress.c b/ext/compressors/bzip2_compress/bzip2_compress.c
index bc67e0f23ee..f94f9fb23dc 100644
--- a/ext/compressors/bzip2_compress/bzip2_compress.c
+++ b/ext/compressors/bzip2_compress/bzip2_compress.c
@@ -26,7 +26,6 @@
*/
#include <bzlib.h>
-#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -128,7 +127,7 @@ bzip2_error(WT_SESSION *session, const char *call, int bzret)
static void *
bzalloc(void *cookie, int number, int size)
{
- return (wiredtiger_scr_alloc(cookie, (size_t)number * size));
+ return (wiredtiger_scr_alloc(cookie, (size_t)(number * size)));
}
static void
@@ -200,7 +199,7 @@ bzip2_decompress(WT_COMPRESSOR *compressor, WT_SESSION *session,
*result_lenp = dst_len - bz.avail_out;
ret = 0;
} else
- bzip2_error(session, "BZ2_bzDecompress", ret);
+ (void)bzip2_error(session, "BZ2_bzDecompress", ret);
if ((tret = BZ2_bzDecompressEnd(&bz)) != BZ_OK)
return (bzip2_error(session, "BZ2_bzDecompressEnd", tret));
diff --git a/ext/compressors/snappy_compress/snappy_compress.c b/ext/compressors/snappy_compress/snappy_compress.c
index 00619b675c4..3140917738e 100644
--- a/ext/compressors/snappy_compress/snappy_compress.c
+++ b/ext/compressors/snappy_compress/snappy_compress.c
@@ -25,7 +25,6 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <errno.h>
#include <snappy-c.h>
#include <stdlib.h>
#include <string.h>