aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/posix/posixHandler.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-03-24 12:30:26 +0100
committerVincent Richard <[email protected]>2013-03-24 12:30:26 +0100
commit21945be4c4ef822b7dc5f6ded80027bd5437ce9d (patch)
tree4302bdee8d07b52be8aa13a4618104e9503e4b10 /src/platforms/posix/posixHandler.cpp
parentOpenSSL library already mentioned in Required.private, don't need to be speci... (diff)
downloadvmime-21945be4c4ef822b7dc5f6ded80027bd5437ce9d.tar.gz
vmime-21945be4c4ef822b7dc5f6ded80027bd5437ce9d.zip
Fixed warnings and 64-bit issues.
Diffstat (limited to 'src/platforms/posix/posixHandler.cpp')
-rw-r--r--src/platforms/posix/posixHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/posix/posixHandler.cpp b/src/platforms/posix/posixHandler.cpp
index f06c865f..73005d7e 100644
--- a/src/platforms/posix/posixHandler.cpp
+++ b/src/platforms/posix/posixHandler.cpp
@@ -123,9 +123,9 @@ posixHandler::~posixHandler()
}
-unsigned int posixHandler::getUnixTime() const
+unsigned long posixHandler::getUnixTime() const
{
- return ::time(NULL);
+ return static_cast <unsigned long>(::time(NULL));
}
@@ -156,7 +156,7 @@ const vmime::datetime posixHandler::getCurrentLocalTime() const
gmt.tm_isdst = -1;
// Calculate the difference (in seconds)
- const int diff = ::mktime(&local) - ::mktime(&gmt);
+ const long diff = ::mktime(&local) - ::mktime(&gmt);
// Return the date
return vmime::datetime(local.tm_year + 1900, local.tm_mon + 1, local.tm_mday,