aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms
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
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')
-rw-r--r--src/platforms/posix/posixHandler.cpp6
-rw-r--r--src/platforms/windows/windowsHandler.cpp4
2 files changed, 5 insertions, 5 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,
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp
index 99b52cdf..f306710f 100644
--- a/src/platforms/windows/windowsHandler.cpp
+++ b/src/platforms/windows/windowsHandler.cpp
@@ -71,9 +71,9 @@ windowsHandler::~windowsHandler()
}
-unsigned int windowsHandler::getUnixTime() const
+unsigned long windowsHandler::getUnixTime() const
{
- return static_cast <unsigned int>(::time(NULL));
+ return static_cast <unsigned long>(::time(NULL));
}