diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-06-22 16:59:16 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-06-22 16:59:39 +0900 |
commit | 8ff61daa672f051d8ecb537edc94036b6cdaaf3f (patch) | |
tree | 455cc4eb438541a1ff3e7bb50c7abc458f189269 /src/lzo1c_xx.c | |
parent | 79a9578a33ecd3093970bd18df677edc9214fafb (diff) | |
download | lzo-8ff61daa672f051d8ecb537edc94036b6cdaaf3f.tar.gz lzo-8ff61daa672f051d8ecb537edc94036b6cdaaf3f.tar.bz2 lzo-8ff61daa672f051d8ecb537edc94036b6cdaaf3f.zip |
Imported Upstream version 2.09
Change-Id: Iff3c94491fe695b43f1d6998f93f56af871806a2
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'src/lzo1c_xx.c')
-rw-r--r-- | src/lzo1c_xx.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lzo1c_xx.c b/src/lzo1c_xx.c index 7a0e594..8b46509 100644 --- a/src/lzo1c_xx.c +++ b/src/lzo1c_xx.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 @@ -47,7 +47,7 @@ static const lzo_compress_t * const c_funcs [9] = }; -lzo_compress_t _lzo1c_get_compress_func(int clevel) +static lzo_compress_t lzo1c_get_compress_func(int clevel) { const lzo_compress_t *f; @@ -56,7 +56,7 @@ lzo_compress_t _lzo1c_get_compress_func(int clevel) if (clevel == LZO1C_DEFAULT_COMPRESSION) clevel = LZO1C_BEST_SPEED; else - return 0; + return (lzo_compress_t) 0; } f = c_funcs[clevel-1]; assert(f && *f); @@ -72,15 +72,11 @@ lzo1c_compress ( const lzo_bytep src, lzo_uint src_len, { lzo_compress_t f; - f = _lzo1c_get_compress_func(clevel); + f = lzo1c_get_compress_func(clevel); if (!f) return LZO_E_ERROR; return _lzo1c_do_compress(src,src_len,dst,dst_len,wrkmem,f); } - -/* -vi:ts=4:et -*/ - +/* vim:set ts=4 sw=4 et: */ |