changed __WHY2_ACCEPT_THREAD_PARAMS identifier to lowercase

i forgot it isn't macro
This commit is contained in:
Václav Šmejkal 2025-01-31 17:08:47 +01:00
parent 2e53e63345
commit 86c804b6c0
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ typedef struct
{ {
int socket; //SOCKET POINTER int socket; //SOCKET POINTER
enum WHY2_CHAT_SERVER_TYPE type; //TYPE OF SERVER enum WHY2_CHAT_SERVER_TYPE type; //TYPE OF SERVER
} _WHY2_ACCEPT_THREAD_PARAMS; } __why2_accept_thread_params;
//FUNCTIONS //FUNCTIONS
void why2_send_socket(char *text, char *username, int socket); //send socket.... wtf did you expect void why2_send_socket(char *text, char *username, int socket); //send socket.... wtf did you expect

View File

@ -58,7 +58,7 @@ int main(void)
printf("CA server enabled.\n\n"); printf("CA server enabled.\n\n");
_WHY2_ACCEPT_THREAD_PARAMS params = { listen_socket, WHY2_CHAT_AUTHORITY }; __why2_accept_thread_params params = { listen_socket, WHY2_CHAT_AUTHORITY };
pthread_create(&thread, NULL, why2_accept_thread, &params); pthread_create(&thread, NULL, why2_accept_thread, &params);
for (;;) for (;;)

View File

@ -58,7 +58,7 @@ int main(void)
printf("Server enabled.\n\n"); printf("Server enabled.\n\n");
_WHY2_ACCEPT_THREAD_PARAMS params = { listen_socket, WHY2_CHAT_SERVER }; __why2_accept_thread_params params = { listen_socket, WHY2_CHAT_SERVER };
pthread_create(&thread, NULL, why2_accept_thread, &params); pthread_create(&thread, NULL, why2_accept_thread, &params);
for (;;) for (;;)

View File

@ -876,7 +876,7 @@ void *why2_authority_communicate_thread(void *arg)
void *why2_accept_thread(void *params) void *why2_accept_thread(void *params)
{ {
_WHY2_ACCEPT_THREAD_PARAMS param = *(_WHY2_ACCEPT_THREAD_PARAMS*) params; //GET PARAMETERS __why2_accept_thread_params param = *(__why2_accept_thread_params*) params; //GET PARAMETERS
//VARIABLES //VARIABLES
int accepted; int accepted;