uclibc for example doesn't implement bzero

Signed-off-by: Marc Kleine-Budde <[email protected]>
---
 cangw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cangw.c b/cangw.c
index 4c7140c..ee063e9 100644
--- a/cangw.c
+++ b/cangw.c
@@ -742,7 +742,7 @@ int main(int argc, char **argv)
        }
 
        /* clean netlink receive buffer */
-       bzero(rxbuf, sizeof(rxbuf));
+       memset(rxbuf, 0x0, sizeof(rxbuf));
 
        if (cmd != LIST) {
 
-- 
1.7.0.4

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to