diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-06-13 02:04:00 -0700 |
---|---|---|
committer | Joe MacDonald <joe.macdonald@windriver.com> | 2013-06-14 09:07:22 -0400 |
commit | 4136f35d5bcdd4e386ea8f105540c64e2cff0cf7 (patch) | |
tree | fb743a1836153fe1a1cbbcfa12d9d6b5fcea525e /meta-networking/recipes-support/ipsec-tools/ipsec-tools | |
parent | ed84e64d22400595b68da4e75b48ab7ecc342aa9 (diff) | |
download | meta-openembedded-contrib-4136f35d5bcdd4e386ea8f105540c64e2cff0cf7.tar.gz |
ipsec-tools: Upgrade to 0.8.1 and fix build with gcc 4.8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
Diffstat (limited to 'meta-networking/recipes-support/ipsec-tools/ipsec-tools')
-rw-r--r-- | meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file mode 100644 index 0000000000..569b545758 --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch @@ -0,0 +1,35 @@ +From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001 +From: Paul Barker <paul@paulbarker.me.uk> +Date: Wed, 12 Jun 2013 17:39:06 +0100 +Subject: [PATCH] Fix warning with gcc 4.8. + +The line "memset(pair, 0, sizeof(pair));" was causing the following warning: + + error: argument to 'sizeof' in 'memset' call is the same expression as + the destination; did you mean to dereference + +Compiling with -Werror (as specified in configure.ac) was causing this warning +to become an error. The line itself is not needed as memory is allocated via +calloc which performs zero initialization. Therefore, the line is removed to fix +the warning and does not need replacing anything. +--- + src/racoon/ipsec_doi.c | 1 - + 1 file changed, 1 deletion(-) + +Upstream-Status: Submitted + +diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c +index 2b48d49..4e9d3a8 100644 +--- a/src/racoon/ipsec_doi.c ++++ b/src/racoon/ipsec_doi.c +@@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype) + "failed to get buffer.\n"); + goto bad; + } +- memset(pair, 0, sizeof(pair)); + + bp = (caddr_t)(sab + 1); + tlen = sa->l - sizeof(*sab); +-- +1.8.3 + |