From 98399ed51045871f8d73599322b6947d6b2b80d0 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 10 Aug 2015 13:51:40 +0200 Subject: Update lzo to 2.09 --- main/lzo/tests/chksum.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main/lzo/tests/chksum.c') diff --git a/main/lzo/tests/chksum.c b/main/lzo/tests/chksum.c index bb5b502b..fb4fb0dd 100644 --- a/main/lzo/tests/chksum.c +++ b/main/lzo/tests/chksum.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -26,7 +26,7 @@ */ -#include "lzo/lzoconf.h" +#include /* utility layer */ #define WANT_LZO_MALLOC 1 @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { lzo_bytep block; - lzo_uint block_len; + lzo_uint block_size; lzo_uint32_t adler, crc; if (argc < 0 && argv == NULL) /* avoid warning about unused args */ @@ -53,18 +53,18 @@ int main(int argc, char *argv[]) } /* prepare the block */ - block_len = 128 * 1024L; - block = (lzo_bytep) lzo_malloc(block_len); + block_size = 128 * 1024L; + block = (lzo_bytep) lzo_malloc(block_size); if (block == NULL) { printf("out of memory\n"); return 3; } - lzo_memset(block, 0, block_len); + lzo_memset(block, 0, block_size); /* adler32 checksum */ adler = lzo_adler32(0, NULL, 0); - adler = lzo_adler32(adler, block, block_len); + adler = lzo_adler32(adler, block, block_size); if (adler != 0x001e0001UL) { printf("adler32 checksum error !!! (0x%08lx)\n", (long) adler); @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) /* crc32 checksum */ crc = lzo_crc32(0, NULL, 0); - crc = lzo_crc32(crc, block, block_len); + crc = lzo_crc32(crc, block, block_size); if (crc != 0x7ee8cdcdUL) { printf("crc32 checksum error !!! (0x%08lx)\n", (long) crc); -- cgit v1.2.3