- Fix build on RELENG_5.

Reported by:	krismail, Thomas Kempka <t.kempka@web.de>
This commit is contained in:
Florent Thoumie 2005-04-21 08:08:04 +00:00
parent 29f2cacafd
commit f222a95b8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133821
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- src/display/utils.cc.orig
+++ src/display/utils.cc
@@ -58,7 +58,7 @@
std::string
print_hhmmss(utils::Timer t) {
- std::tm *u = std::localtime(&(time_t)t.tval().tv_sec);
+ std::tm *u = std::localtime((const time_t *)&t.tval().tv_sec);
if (u == NULL)
return "inv_time";

View file

@ -0,0 +1,11 @@
--- src/display/utils.cc.orig
+++ src/display/utils.cc
@@ -58,7 +58,7 @@
std::string
print_hhmmss(utils::Timer t) {
- std::tm *u = std::localtime(&(time_t)t.tval().tv_sec);
+ std::tm *u = std::localtime((const time_t *)&t.tval().tv_sec);
if (u == NULL)
return "inv_time";