diff --git a/src/UNIX/EnumFile.cpp b/src/UNIX/EnumFile.cpp index 20affd4..f5b5548 100644 --- a/src/UNIX/EnumFile.cpp +++ b/src/UNIX/EnumFile.cpp @@ -27,7 +27,7 @@ namespace hgl if(config->folder_name.IsEmpty()) { - fullname='.'; + fullname=OS_TEXT("."); } else { diff --git a/src/UNIX/File.cpp b/src/UNIX/File.cpp index 8f894d3..4b2b822 100644 --- a/src/UNIX/File.cpp +++ b/src/UNIX/File.cpp @@ -170,7 +170,7 @@ namespace hgl { if(!mkdir(name,S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH))return(true); - LOG_PROBLEM(OS_TEXT("Create Directory <")+OSString(name)+OS_TEXT("> failed,errno: ")+OSString(errno)); + LOG_PROBLEM(OS_TEXT("Create Directory <")+OSString(name)+OS_TEXT("> failed,errno: ")+OSString::valueOf(errno)); return(false); } diff --git a/src/UNIX/FileAccess.cpp b/src/UNIX/FileAccess.cpp index 15e4174..563a610 100644 --- a/src/UNIX/FileAccess.cpp +++ b/src/UNIX/FileAccess.cpp @@ -35,13 +35,13 @@ namespace hgl if(fom==fomReadWrite )fp=hgl_open64(fn,O_RDWR );else if(fom==fomAppend )fp=hgl_open64(fn,O_APPEND );else { - LOG_ERROR(OS_TEXT("UNIX,FileAccess,OpenFile(")+OSString(fn)+OS_TEXT(" mode error: "+OSString(fom))); + LOG_ERROR(OS_TEXT("UNIX,FileAccess,OpenFile(")+OSString(fn)+OS_TEXT(" mode error: "+OSString::valueOf(fom))); RETURN_ERROR(-1); } if(fp==-1) { - LOG_ERROR(OS_TEXT("UNIX,FileAccess,OpenFile(")+OSString(fn)+OS_TEXT(") open return error: "+OSString(errno))); + LOG_ERROR(OS_TEXT("UNIX,FileAccess,OpenFile(")+OSString(fn)+OS_TEXT(") open return error: "+OSString::valueOf(errno))); } return fp; diff --git a/src/UNIX/Semaphore.cpp b/src/UNIX/Semaphore.cpp index c045210..9266271 100644 --- a/src/UNIX/Semaphore.cpp +++ b/src/UNIX/Semaphore.cpp @@ -16,8 +16,8 @@ namespace hgl if(sem_init(ptr,PTHREAD_PROCESS_PRIVATE,0)) { - LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString(max_count)); - delete ptr; + LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString::valueOf(max_count)); + delete (sem_t *)ptr; ptr=nullptr; } } diff --git a/src/UNIX/Thread.cpp b/src/UNIX/Thread.cpp index 9e40af2..590d4e4 100644 --- a/src/UNIX/Thread.cpp +++ b/src/UNIX/Thread.cpp @@ -35,7 +35,7 @@ namespace hgl tp=0; pthread_attr_destroy(&attr); - LOG_ERROR(OS_TEXT("Create Thread (pthread_create) failed.errno:")+OSString(errno)); + LOG_ERROR(OS_TEXT("Create Thread (pthread_create) failed.errno:")+OSString::valueOf(errno)); return(false); }