diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 22:14:56 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 22:14:56 +0200 |
commit | 11fff636f92341a2f73b3fd3868c7f95da625df9 (patch) | |
tree | d0702e348bd93591825311465631e3a83666e195 /ax25ipd | |
parent | f4a142c0031a15f9a6532d9d910d66d3911f5adf (diff) |
ax25ipd: Replace bzero use with memset.
bzero is a mega-ancient use of bsdism.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd')
-rw-r--r-- | ax25ipd/io.c | 8 |
1 files 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; } |