aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-05-14 15:57:06 +0000
committerVincent Richard <[email protected]>2005-05-14 15:57:06 +0000
commit4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f (patch)
tree8a1919ad461f7a5f3242cd58f9a6ee60f2f196af
parentFixed missing space in STATUS command + parse error in 'status_info'. (diff)
downloadvmime-4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f.tar.gz
vmime-4781f7ce1ce4355ff11f4e8ad2d46d6251f0587f.zip
Replaced getpid() with GetCurrentProcessId() on Windows.
-rw-r--r--src/platforms/windows/windowsHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp
index 36741d25..d4a9ecef 100644
--- a/src/platforms/windows/windowsHandler.cpp
+++ b/src/platforms/windows/windowsHandler.cpp
@@ -59,7 +59,7 @@ windowsHandler::~windowsHandler()
const unsigned int windowsHandler::getUnixTime() const
{
- return (unsigned int)::time(NULL);
+ return static_cast <unsigned int>(::time(NULL));
}
@@ -227,7 +227,7 @@ const vmime::string windowsHandler::getHostName() const
const unsigned int windowsHandler::getProcessId() const
{
- return (::getpid());
+ return (static_cast <unsigned int>(::GetCurrentProcessId());
}