Fix a typo trunk
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 21 Feb 2024 08:39:50 +0000 (09:39 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Wed, 21 Feb 2024 08:39:50 +0000 (09:39 +0100)
src/server.c

index 898d46a9d5de7980e9d101ce4699441151a7346f..cfa5f80ec74f6537bfd662bace77ea8c0b5774a9 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/20 15:12:04 by ljiriste          #+#    #+#             */
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/20 15:12:04 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/01/23 13:26:46 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/02/21 09:35:18 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -18,7 +18,7 @@
 
 static t_transfer      g_trans;
 
 
 static t_transfer      g_trans;
 
-static void    bit_reciever(int signum)
+static void    bit_receiver(int signum)
 {
        if (signum == SIGUSR1)
                g_trans.bit = 1;
 {
        if (signum == SIGUSR1)
                g_trans.bit = 1;
@@ -36,7 +36,7 @@ static void   setup_handler(void)
        sigemptyset(&sa.sa_mask);
        sigaddset(&sa.sa_mask, SIGUSR1);
        sigaddset(&sa.sa_mask, SIGUSR2);
        sigemptyset(&sa.sa_mask);
        sigaddset(&sa.sa_mask, SIGUSR1);
        sigaddset(&sa.sa_mask, SIGUSR2);
-       sa.sa_handler = bit_reciever;
+       sa.sa_handler = bit_receiver;
        sigaction(SIGUSR1, &sa, NULL);
        sigaction(SIGUSR2, &sa, NULL);
        return ;
        sigaction(SIGUSR1, &sa, NULL);
        sigaction(SIGUSR2, &sa, NULL);
        return ;
@@ -50,7 +50,7 @@ static void   general_setup(t_vec *string, pid_t *c_pid,
                "You can contact me through my PID: %i.\n"
                "For legibility I'll leave one empty line "
                "after this initial message.\n"
                "You can contact me through my PID: %i.\n"
                "For legibility I'll leave one empty line "
                "after this initial message.\n"
-               "I'll also append empty line to every message recieved.\n"
+               "I'll also append empty line to every message received.\n"
                "I'm starting to print the messages now:\n\n", getpid());
        *c_pid = 0;
        *c_pid_known = 0;
                "I'm starting to print the messages now:\n\n", getpid());
        *c_pid = 0;
        *c_pid_known = 0;