On Fri, 18 Nov 2016 10:29:20 +0200
Tuomo Soini <[email protected]> wrote:

> Error message from build:
> 
> /builddir/build/BUILD/libreswan-3.18/programs/pluto/rcv_whack.c: In
> function
> 'writewhackrecord': 
> /builddir/build/BUILD/libreswan-3.18/programs/pluto/rcv_whack.c:210:2:
> error: right shift count >= width of type [-Werror] header[1] = now >>
> 32; ^ cc1: all warnings being treated as errors
> 

DHR: are you be ok with easy fix?


-- 
Tuomo Soini <[email protected]>
Foobar Linux services
+358 40 5240030
Foobar Oy <http://foobar.fi/>
diff -up libreswan-3.18/programs/pluto/rcv_whack.c.fix32bit libreswan-3.18/programs/pluto/rcv_whack.c
--- libreswan-3.18/programs/pluto/rcv_whack.c.fix32bit	2016-11-18 16:54:18.143392221 +0200
+++ libreswan-3.18/programs/pluto/rcv_whack.c	2016-11-18 16:55:38.266729748 +0200
@@ -207,7 +207,7 @@ static bool writewhackrecord(char *buf,
 		return TRUE;
 
 	header[0] = buflen + sizeof(header);
-	header[1] = now >> 32;
+	header[1] = ((long long)now) >> 32;
 	header[2] = now;
 
 	/* DBG_log("buflen: %zu abuflen: %zu", buflen, abuflen); */
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to