Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2016 10:45:19 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r294718 - stable/10/sys/cddl/boot/zfs
Message-ID:  <201601251045.u0PAjJEm050804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Mon Jan 25 10:45:18 2016
New Revision: 294718
URL: https://svnweb.freebsd.org/changeset/base/294718

Log:
  MFC r293271:
  
  Fix const conversion warning in lz4_decompress
  
  Sponsored by:	Multiplay

Modified:
  stable/10/sys/cddl/boot/zfs/lz4.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/boot/zfs/lz4.c
==============================================================================
--- stable/10/sys/cddl/boot/zfs/lz4.c	Mon Jan 25 10:44:10 2016	(r294717)
+++ stable/10/sys/cddl/boot/zfs/lz4.c	Mon Jan 25 10:45:18 2016	(r294718)
@@ -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?201601251045.u0PAjJEm050804>