changed __WHY2_ACCEPT_THREAD_PARAMS identifier to lowercase
i forgot it isn't macro
This commit is contained in:
parent
2e53e63345
commit
86c804b6c0
@ -32,7 +32,7 @@ typedef struct
|
||||
{
|
||||
int socket; //SOCKET POINTER
|
||||
enum WHY2_CHAT_SERVER_TYPE type; //TYPE OF SERVER
|
||||
} _WHY2_ACCEPT_THREAD_PARAMS;
|
||||
} __why2_accept_thread_params;
|
||||
|
||||
//FUNCTIONS
|
||||
void why2_send_socket(char *text, char *username, int socket); //send socket.... wtf did you expect
|
||||
|
@ -58,7 +58,7 @@ int main(void)
|
||||
|
||||
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, ¶ms);
|
||||
|
||||
for (;;)
|
||||
|
@ -58,7 +58,7 @@ int main(void)
|
||||
|
||||
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, ¶ms);
|
||||
|
||||
for (;;)
|
||||
|
@ -876,7 +876,7 @@ void *why2_authority_communicate_thread(void *arg)
|
||||
|
||||
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
|
||||
int accepted;
|
||||
|
Loading…
x
Reference in New Issue
Block a user