From 24ff755f49fed3bf2a965f09d48cb2eabeb4d070 Mon Sep 17 00:00:00 2001
From: Thomas Chou <thomas@wytron.com.tw>
Date: Sun, 2 Dec 2007 16:29:30 +0800
Subject: [PATCH] ftpd: replace legacy bcopy/bzero/bcmp/index/rindex

bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3.
They are replaced as proposed by SuSv3.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 user/ftpd/config.h  |    6 +++---
 user/ftpd/logwtmp.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/user/ftpd/config.h b/user/ftpd/config.h
index b3c9fb9..4265d50 100644
--- a/user/ftpd/config.h
+++ b/user/ftpd/config.h
@@ -44,13 +44,13 @@
 /* #undef HAVE_ATTR_WEAK_REFS */
 
 /* Define to 1 if you have the `bcmp' function. */
-#define HAVE_BCMP 1
+#undef HAVE_BCMP
 
 /* Define to 1 if you have the `bcopy' function. */
-#define HAVE_BCOPY 1
+#undef HAVE_BCOPY
 
 /* Define to 1 if you have the `bzero' function. */
-#define HAVE_BZERO 1
+#undef HAVE_BZERO
 
 /* Define to 1 if the system has the type `cc_t'. */
 #define HAVE_CC_T 1
diff --git a/user/ftpd/logwtmp.c b/user/ftpd/logwtmp.c
index e332900..928f3e8 100644
--- a/user/ftpd/logwtmp.c
+++ b/user/ftpd/logwtmp.c
@@ -112,7 +112,7 @@ logwtmp (char *line, char *name, char *host)
   struct utmp ut;
 
   /* Set information in new entry.  */
-  bzero (&ut, sizeof (ut));
+  memset (&ut, 0, sizeof (ut));
 #ifdef HAVE_STRUCT_UTMP_UT_TYPE
   ut.ut_type = USER_PROCESS;
 #endif
-- 
1.5.3.3

