From 11fff636f92341a2f73b3fd3868c7f95da625df9 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 22:14:56 +0200 Subject: ax25ipd: Replace bzero use with memset. bzero is a mega-ancient use of bsdism. Signed-off-by: Ralf Baechle --- ax25ipd/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ax25ipd/io.c b/ax25ipd/io.c index 281d248..1bc3377 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -244,17 +244,17 @@ void io_init(void) } /* - * The bzero is not strictly required - it simply zeros out the + * The memset is not strictly required - it simply zeros out the * address structure. Since both to and from are static, they are * already clear. */ - bzero(&to, sizeof(struct sockaddr)); + memset(&to, 0, sizeof(struct sockaddr)); to.sin_family = AF_INET; - bzero(&from, sizeof(struct sockaddr)); + memset(&from, 0, sizeof(struct sockaddr)); from.sin_family = AF_INET; - bzero(&udpbind, sizeof(struct sockaddr)); + memset(&udpbind, 0, sizeof(struct sockaddr)); udpbind.sin_family = AF_INET; } -- cgit v1.2.3