Replace bzero() with memset(). bzero() is removed in POSIX-2008
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:15:22 +0000 (11:15 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:15:22 +0000 (11:15 +0200)
src/timefunc.cpp

index 4f89c58..a45f00e 100644 (file)
@@ -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;