[BACK]Return to patch-lib_stdfns.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / mhash / patches

File: [cvs.NetBSD.org] / pkgsrc / security / mhash / patches / patch-lib_stdfns.c (download)

Revision 1.1, Thu Jun 18 06:17:33 2015 UTC (5 years ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, HEAD

Add Sun Studio build fixes from Joern Clausen in PR 40959.

$NetBSD: patch-lib_stdfns.c,v 1.1 2015/06/18 06:17:33 dholland Exp $

Avoid returning expressions of type void.

--- lib/stdfns.c~	2015-06-18 06:08:36.000000000 +0000
+++ lib/stdfns.c
@@ -222,7 +222,8 @@ mutils_memcpy(void *dest, __const void *
 	if ((n < 16) || ((mutils_word32)ptr1 & 0x3) || ((mutils_word32)ptr2 
 & 0x3))
 	{
-		return mutils_memcpy8(ptr2, ptr1, n);
+		mutils_memcpy8(ptr2, ptr1, n);
+		return;
 	}
 
 	words = n >> 2;