git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8655e0f
)
Replace bzero() with memset(). bzero() is removed in POSIX-2008
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:15:22 +0000 (11:15 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:15:22 +0000 (11:15 +0200)
src/timefunc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/timefunc.cpp
b/src/timefunc.cpp
index
4f89c58
..
a45f00e
100644
(file)
--- 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;