Hi Thomas,
Thomas Chou wrote:
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3.
They are replaced as proposed by SuSv3.
Why not just enable legacy support for these in uClibc?
Easier than modify all those legacy packages.
Regards
Greg
Signed-off-by: Thomas Chou <[EMAIL PROTECTED]>
diff --git a/user/boa/src/auth.c b/user/boa/src/auth.c
index e8f000e..12c16f3 100644
--- a/user/boa/src/auth.c
+++ b/user/boa/src/auth.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <fcntl.h>
-#include <strings.h>
+#include <string.h>
#ifdef __UC_LIBC__
#include <unistd.h>
#else
@@ -365,7 +365,7 @@ int auth_authorize(request * req)
break;
#endif
}
- bzero(current_client,
sizeof(current_client));
+ memset(current_client, 0,
sizeof(current_client));
send_r_unauthorized(req,server_name);
return 0;
}
diff --git a/user/boa/src/config.c b/user/boa/src/config.c
index dc222a9..9ad3d8a 100644
--- a/user/boa/src/config.c
+++ b/user/boa/src/config.c
@@ -322,7 +322,7 @@ embedparse(FILE *fp)
if (fp == NULL)
return(-1);
- bzero(arg, sizeof(arg));
+ memset(arg, 0, sizeof(arg));
line = 0;
while (fgets(buf, sizeof(buf), fp)) {
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev