From: Thomas Jarosch Date: Mon, 17 Oct 2011 09:15:22 +0000 (+0200) Subject: Replace bzero() with memset(). bzero() is removed in POSIX-2008 X-Git-Tag: v2.6~32 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=4cf3676b7256dbd60a44d00b4aa0d88ade400aae;p=libi2ncommon Replace bzero() with memset(). bzero() is removed in POSIX-2008 --- diff --git a/src/timefunc.cpp b/src/timefunc.cpp index 4f89c58..a45f00e 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -96,9 +96,9 @@ int date_to_seconds(const std::string &date) if (year < 0 || month == -1 || day == -1) return rtn; - + struct tm tm_struct; - bzero (&tm_struct, sizeof(struct tm)); + memset(&tm_struct, 0, sizeof(struct tm)); tm_struct.tm_year = year; tm_struct.tm_mon = month; tm_struct.tm_mday = day;