diff options
author | Jon Ringle <jon@ringle.org> | 2011-05-24 11:56:59 -0400 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-27 19:46:12 +0200 |
commit | df1d0ebf867b69b596432140662725dac4b09cd9 (patch) | |
tree | cae12f5142d05f16271d05ecb8c22f8775727ba3 | |
parent | 91d69b1d3dfac61cf6a402e33fa8213fc50f84e7 (diff) | |
download | ptxdist-df1d0ebf867b69b596432140662725dac4b09cd9.tar.gz ptxdist-df1d0ebf867b69b596432140662725dac4b09cd9.tar.xz |
dropbear: replace bzero with memset
bzero is deprecated and not available in uclibc
replace it with memset
Signed-off-by: Jon Ringle <jon@ringle.org>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/dropbear-0.52/0001-replace-bzero-with-memset.patch | 26 | ||||
-rw-r--r-- | patches/dropbear-0.52/series | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch b/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch new file mode 100644 index 000000000..2a41cfe72 --- /dev/null +++ b/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch @@ -0,0 +1,26 @@ +From 30d685c42cda04cf36dbadd5b453d4c50a7de64c Mon Sep 17 00:00:00 2001 +From: Jon Ringle <jon@ringle.org> +Date: Tue, 26 Apr 2011 03:11:49 -0400 +Subject: [PATCH] replace bzero with memset + +Signed-off-by: Jon Ringle <jon@ringle.org> +--- + svr-main.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/svr-main.c b/svr-main.c +index 8d57084..484d186 100644 +--- a/svr-main.c ++++ b/svr-main.c +@@ -133,7 +133,7 @@ void main_noinetd() { + for (i = 0; i < MAX_UNAUTH_CLIENTS; i++) { + childpipes[i] = -1; + } +- bzero(preauth_addrs, sizeof(preauth_addrs)); ++ memset(preauth_addrs, 0, sizeof(preauth_addrs)); + + /* Set up the listening sockets */ + listensockcount = listensockets(listensocks, MAX_LISTEN_ADDR, &maxsock); +-- +1.7.0.4 + diff --git a/patches/dropbear-0.52/series b/patches/dropbear-0.52/series new file mode 100644 index 000000000..80f9ac96a --- /dev/null +++ b/patches/dropbear-0.52/series @@ -0,0 +1 @@ +0001-replace-bzero-with-memset.patch |