fix: fixed compilation errors

This commit is contained in:
sede-san
2025-10-17 20:15:28 +02:00
parent 83263bb269
commit e208cc0317
2 changed files with 2 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
# By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/07/30 20:22:21 by sede-san #+# #+# #
# Updated: 2025/08/20 22:40:43 by sede-san ### ########.fr #
# Updated: 2025/10/17 20:11:31 by sede-san ### ########.fr #
# #
# **************************************************************************** #
@@ -70,7 +70,6 @@ SRC = \
$(SRC_PATH)/features/builtins/printenv.c \
$(SRC_PATH)/features/builtins/pwd.c \
$(SRC_PATH)/features/builtins/unset.c \
$(SRC_PATH)/utils/get_hostname.c \
$(SRC_PATH)/utils/signals.c
# Include path

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/31 03:42:25 by sede-san #+# #+# */
/* Updated: 2025/08/21 17:31:52 by sede-san ### ########.fr */
/* Updated: 2025/10/17 20:11:24 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -117,11 +117,6 @@ static int minishell(t_minishell *minishell)
if (line)
free(line);
char *prompt = NULL;
char *hostname = get_hostname();
if (hostname)
{
free(hostname);
}
if (prompt)
{
line = readline(prompt);