diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-11-02 15:23:19 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-11-02 15:23:19 +0100 |
commit | 541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab (patch) | |
tree | 6098829ac4007b672893e800ea56453071672973 /src/c_init.c | |
parent | omw to sed-town (diff) | |
download | 42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.gz 42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.bz2 42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.xz 42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.zst 42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.zip |
merge happenned
Diffstat (limited to '')
-rw-r--r-- | src/c_init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/c_init.c b/src/c_init.c index 77d3023..6847c14 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -23,8 +23,8 @@ #include "s_struct.h" #include "m_prompt.h" -int16_t - c_set_term_raw(uint8_t mode) +short + c_set_term_raw(char mode) { struct termios tios; @@ -61,10 +61,10 @@ static void c_redraw_line(*line, tcaps, msh); } -static int16_t +static short c_read_cap(char *buf, char *line, t_caps *tcaps, t_msh *msh) { - uint32_t plen; + unsigned int plen; plen = ft_strlen(msh->ps[tcaps->psx]); if (((*((unsigned int *)buf)) == LEFT_K) || @@ -119,8 +119,8 @@ static char return ((buf[0] == '\n') ? c_new_line(line, tcaps) : NULL); } -int16_t - c_gnl(int32_t fd, char **line, uint8_t psx, t_msh *msh) +short + c_gnl(int fd, char **line, char psx, t_msh *msh) { t_caps tcaps; char nread[5]; |