Fixed some bugs left from windows porting.

git-svn-id: http://yate.null.ro/svn/yate/trunk@273 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-04-02 13:28:14 +00:00
parent 60ec9fec0b
commit 49ff961c9a
4 changed files with 9 additions and 7 deletions

View File

@ -445,7 +445,7 @@ bool Driver::received(Message &msg, int id)
Lock lock(this);
Channel* chan = find(dest);
if (!chan) {
DDebug(DebugMild,"Could not find channel '%s'",dest);
DDebug(DebugMild,"Could not find channel '%s'",dest.c_str());
return false;
}

View File

@ -223,7 +223,7 @@ void EnginePrivate::run()
Engine::Engine()
{
DDebug(DebugAll,"Engine::Engine()"," [%p]",this);
DDebug(DebugAll,"Engine::Engine() [%p]",this);
}
Engine::~Engine()
@ -841,7 +841,7 @@ int Engine::main(int argc, const char** argv, const char** environ)
int retcode = -1;
#ifndef _WINDOWS
if (supervised)
retcode = supervise()
retcode = supervise();
if (retcode >= 0)
return retcode;
#endif

View File

@ -355,7 +355,7 @@ String& String::toUpper()
{
if (m_string) {
char c;
for (char *s = m_string; c = *s; s++) {
for (char *s = m_string; (c = *s); s++) {
if (('a' <= c) && (c <= 'z'))
*s = c + 'A' - 'a';
}
@ -367,7 +367,7 @@ String& String::toLower()
{
if (m_string) {
char c;
for (char *s = m_string; c = *s; s++) {
for (char *s = m_string; (c = *s); s++) {
if (('A' <= c) && (c <= 'Z'))
*s = c + 'a' - 'A';
}

View File

@ -28,6 +28,7 @@
#endif
#include <stddef.h>
#include <sys/types.h>
#ifndef _WINDOWS
#ifdef WIN32
@ -36,6 +37,7 @@
#endif
#ifdef _WINDOWS
typedef signed __int32 int32_t;
typedef unsigned __int32 u_int32_t;
typedef signed __int64 int64_t;
@ -53,11 +55,11 @@ typedef unsigned __int64 u_int64_t;
#define YATE_API __declspec(dllimport)
#endif
#else
#else /* _WINDOWS */
#define YATE_API
#endif
#endif /* ! _WINDOWS */
struct timeval;