* grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
This commit is contained in:
parent
0036f02d7b
commit
af211babd8
2 changed files with 7 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
|
||||||
|
|
||||||
2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
|
2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
|
||||||
|
|
||||||
* grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
|
* grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
|
||||||
|
|
|
@ -74,14 +74,6 @@ static int LZ4_uncompress_unknownOutputSize(const char *source, char *dest,
|
||||||
* Compiler Options
|
* Compiler Options
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __STDC_VERSION__ >= 199901L /* C99 */
|
|
||||||
/* "restrict" is a known keyword */
|
|
||||||
#else
|
|
||||||
/* Disable restrict */
|
|
||||||
#ifndef restrict
|
|
||||||
#define restrict /* Only if somebody already didn't take care of that.*/
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||||
|
|
||||||
|
@ -196,11 +188,11 @@ LZ4_uncompress_unknownOutputSize(const char *source,
|
||||||
char *dest, int isize, int maxOutputSize)
|
char *dest, int isize, int maxOutputSize)
|
||||||
{
|
{
|
||||||
/* Local Variables */
|
/* Local Variables */
|
||||||
const BYTE *restrict ip = (const BYTE *) source;
|
const BYTE * ip = (const BYTE *) source;
|
||||||
const BYTE *const iend = ip + isize;
|
const BYTE *const iend = ip + isize;
|
||||||
const BYTE *restrict ref;
|
const BYTE * ref;
|
||||||
|
|
||||||
BYTE *restrict op = (BYTE *) dest;
|
BYTE * op = (BYTE *) dest;
|
||||||
BYTE *const oend = op + maxOutputSize;
|
BYTE *const oend = op + maxOutputSize;
|
||||||
BYTE *cpy;
|
BYTE *cpy;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue