Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2016 20:28:09 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293271 - head/sys/cddl/boot/zfs
Message-ID:  <201601062028.u06KS97L091349@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Wed Jan  6 20:28:09 2016
New Revision: 293271
URL: https://svnweb.freebsd.org/changeset/base/293271

Log:
  Fix const conversion warning in lz4_decompress
  
  Fix const conversion warning in lz4_decompress which shows when warnings
  are enabled (to be done later).
  
  MFC after:	2 weeks
  X-MFC-With:	r293268
  Sponsored by:	Multiplay

Modified:
  head/sys/cddl/boot/zfs/lz4.c

Modified: head/sys/cddl/boot/zfs/lz4.c
==============================================================================
--- head/sys/cddl/boot/zfs/lz4.c	Wed Jan  6 20:27:55 2016	(r293270)
+++ head/sys/cddl/boot/zfs/lz4.c	Wed Jan  6 20:28:09 2016	(r293271)
@@ -52,7 +52,7 @@ lz4_decompress(void *s_start, void *d_st
 	 * Returns 0 on success (decompression function returned non-negative)
 	 * and non-zero on failure (decompression function returned negative).
 	 */
-	return (LZ4_uncompress_unknownOutputSize(s_start + 4, d_start, bufsiz,
+	return (LZ4_uncompress_unknownOutputSize((const char *)s_start + 4, d_start, bufsiz,
 	    d_len) < 0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601062028.u06KS97L091349>