From 5a0fc0ad21d562612676ef88ef2d533b2391810a Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Fri, 4 Jun 2010 15:35:31 +0700 Subject: Replace deprecated bzero with memset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mikhail Gusarov Reviewed-by: Marcin BaczyƄski Reviewed-by: Daniel Stone Reviewed-by: Alan Coopersmith Reviewed-by: Matt Turner --- os/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/utils.c') diff --git a/os/utils.c b/os/utils.c index 7aa392ad8..b4a954f76 100644 --- a/os/utils.c +++ b/os/utils.c @@ -979,7 +979,7 @@ set_font_authorizations(char **authorizations, int *authlen, pointer client) gethostname(hname, 1024); #if defined(IPv6) && defined(AF_INET6) - bzero(&hints, sizeof(hints)); + memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_CANONNAME; if (getaddrinfo(hname, NULL, &hints, &ai) == 0) { hnameptr = ai->ai_canonname; @@ -1178,7 +1178,7 @@ SmartScheduleInit (void) if (SmartScheduleDisable) return TRUE; - bzero ((char *) &act, sizeof(struct sigaction)); + memset((char *) &act, 0, sizeof(struct sigaction)); /* Set up the timer signal function */ act.sa_handler = SmartScheduleTimer; -- cgit v1.2.3