changes file upload methods; improves session_send_string function.

This commit is contained in:
2026-03-18 16:30:33 +02:00
parent 03b9462a0c
commit a91e22794e
5 changed files with 38 additions and 25 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
#include "main.h"
#include "session.h"
#include "user.h"
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
@@ -88,7 +87,7 @@ void server_main_loop(server_data_t *s_d) {
}
}
char *get_welcome_mes() {
char *get_welcome_mes(void) {
int fd = open(WELCOME_FILE_NAME, O_RDONLY);
if (fd == -1) {
perror(WELCOME_FILE_NAME);