diff options
Diffstat (limited to 'src/c_input.c')
-rw-r--r-- | src/c_input.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/c_input.c b/src/c_input.c index 8fb4b72..24e45e3 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -23,8 +23,8 @@ #include "m_prompt.h" #include "m_loop.h" -int16_t - c_init_line(uint8_t psx, t_caps *tcaps) +short + c_init_line(char psx, t_caps *tcaps) { char *term; @@ -45,7 +45,7 @@ int16_t return (-1); } -uint16_t +unsigned short c_get_win_size(struct winsize *ws) { if (!(ioctl(STDOUT_FILENO, TIOCGWINSZ, ws))) @@ -57,12 +57,12 @@ uint16_t return (1); } -uint32_t - c_get_line_num(char *line, uint32_t cpos, uint32_t plen, t_caps *tcaps) +unsigned int + c_get_line_num(char *line, unsigned int cpos, unsigned int plen, t_caps *tcaps) { - uint32_t it; - uint32_t line_num; - uint32_t len; + unsigned int it; + unsigned int line_num; + unsigned int len; it = 0; line_num = 0; @@ -79,8 +79,8 @@ uint32_t return (line_num); } -int16_t - c_back_slash(char **line, uint32_t plen, t_caps *tcaps) +short + c_back_slash(char **line, unsigned int plen, t_caps *tcaps) { if (tcaps->cpos >= 1) { |