Changeset 216 in Main for trunk/Server/server.c
- Timestamp:
- Oct 3, 2024, 4:31:23 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r215 r216 43 43 44 44 #include "strptime.h" 45 typedef int socklen_t; 45 46 #else 46 47 #ifdef USE_POLL … … 449 450 }; 450 451 451 #if defined(__MINGW32__) || defined(_MSC_VER) 452 unsigned int WINAPI tw_server_pass(void* ptr) { 453 #elif defined(__BORLANDC__) 452 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 453 #define NO_RETURN_THREAD 454 454 void tw_server_pass(void* ptr) { 455 455 #elif defined(__HAIKU__) … … 465 465 SOCKADDR addr = ((struct pass_entry*)ptr)->addr; 466 466 #else 467 #define NO_RETURN_THREAD 467 468 void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { 468 469 #endif … … 619 620 cm_log("Server", "Filesystem path is %s", path); 620 621 #if defined(_MSC_VER) || defined(__BORLANDC__) 621 for(i = strlen(path) - 1; i >= 0; i--) {622 if(path[i] == '/') {622 for(i = strlen(path) - 1; i >= 0; i--) { 623 if(path[i] == '/') { 623 624 path[i] = 0; 624 } else{625 } else { 625 626 break; 626 627 } … … 899 900 close_socket(sock); 900 901 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) 901 _endthread( 902 #ifndef __BORLANDC__ 903 0 904 #endif 905 ); 902 _endthread(); 906 903 #elif defined(__HAIKU__) 907 904 exit_thread(0); 908 905 #endif 909 #ifndef __BORLANDC__906 #ifndef NO_RETURN_THREAD 910 907 return 0; 911 908 #endif
Note:
See TracChangeset
for help on using the changeset viewer.