summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 19:03:30 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 19:03:30 +0200
commitdf6a1ca9e413c88a93d31a186d24cb8f6fda5daa (patch)
tree7e4a6eeb2921fd364855a2d3f3aee3cb95376948
parentmuting gcc (diff)
download42-minishell-df6a1ca9e413c88a93d31a186d24cb8f6fda5daa.tar.gz
42-minishell-df6a1ca9e413c88a93d31a186d24cb8f6fda5daa.tar.bz2
42-minishell-df6a1ca9e413c88a93d31a186d24cb8f6fda5daa.tar.xz
42-minishell-df6a1ca9e413c88a93d31a186d24cb8f6fda5daa.tar.zst
42-minishell-df6a1ca9e413c88a93d31a186d24cb8f6fda5daa.zip
Muting both clang and gcc
Diffstat (limited to '')
-rw-r--r--Makefile2
-rw-r--r--src/m_prompt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d3f73cb..7164b95 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ ifeq (${OS}, FreeBSD)
CC = /usr/bin/cc
endif
ifeq (${OS}, Linux)
-CC = gcc
+CC = cc
endif
ifeq (${OS}, Darwin)
CC = clang
diff --git a/src/m_prompt.c b/src/m_prompt.c
index e9589a5..4f80627 100644
--- a/src/m_prompt.c
+++ b/src/m_prompt.c
@@ -49,7 +49,7 @@ static void m_update_psx(uint8_t x, t_msh *msh)
char var[ARG_MAX];
char psx[5];
- ft_sprintf(psx, "$PS%hhu", x);
+ ft_sprintf(psx, "$PS%hu", (uint16_t)x);
u_get_var_value(var, psx, ARG_MAX, msh);
if (var[0] == C_NUL)
{