summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-04-18 09:40:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-15 15:47:53 -0700
commit4517909ce6105dc9a414c24604c93670b5b81b8a (patch)
treecb65fbb73729ad6f7c78d77ade50f6ef75f06fdb /meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
parent9a4f6264d24bda0ebfc2f22457a46e1277f20ffe (diff)
downloadpoky-4517909ce6105dc9a414c24604c93670b5b81b8a.tar.gz
libtirpc: Enable des APIs for musl
Use memset() API instead of __bzero() Drop the patch removing des_* functions for musl (From OE-Core rev: 8264826911888bd45b1d0cc914675d30a1a78546) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch')
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
new file mode 100644
index 0000000000..d2b4da6ae2
--- /dev/null
+++ b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch
@@ -0,0 +1,30 @@
1From 20badc3e3608953fb5b36bb2e16fa51bd731aebc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 18 Apr 2017 09:35:35 -0700
4Subject: [PATCH] replace __bzero() with memset() API
5
6memset is available across all libc implementation
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10Upstream-Status: Pending
11
12 src/des_impl.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/des_impl.c b/src/des_impl.c
16index 9dbccaf..15bec2a 100644
17--- a/src/des_impl.c
18+++ b/src/des_impl.c
19@@ -588,7 +588,7 @@ _des_crypt (char *buf, unsigned len, struct desparams *desp)
20 }
21 tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
22 tbuf[0] = tbuf[1] = 0;
23- __bzero (schedule, sizeof (schedule));
24+ memset (schedule, 0, sizeof (schedule));
25
26 return (1);
27 }
28--
292.12.2
30