renamed why2_chat_init_config to why2_chat_init_server_config
This commit is contained in:
parent
9e95b283a4
commit
89e69df3cd
@ -22,6 +22,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
//MACROS
|
||||
#define WHY2_CHAT_CODE_PICK_USERNAME "code_001"
|
||||
|
||||
void why2_chat_init_config(void); //CHECK IF CONFIG EXISTS, CREATE IT
|
||||
void why2_chat_init_server_config(void); //CHECK IF SERVER CONFIG EXISTS, CREATE IT
|
||||
|
||||
#endif
|
@ -30,7 +30,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <why2/memory.h>
|
||||
#include <why2/misc.h>
|
||||
|
||||
void why2_chat_init_config(void)
|
||||
void why2_chat_init_server_config(void)
|
||||
{
|
||||
char *path = why2_replace(WHY2_CHAT_CONFIG_DIR "/" WHY2_CHAT_CONFIG_SERVER, "{USER}", getenv("USER"));
|
||||
|
||||
|
@ -33,7 +33,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
int main(void)
|
||||
{
|
||||
why2_chat_init_config();
|
||||
why2_chat_init_server_config();
|
||||
|
||||
int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET
|
||||
pthread_t thread;
|
||||
|
Loading…
x
Reference in New Issue
Block a user