Commit 30125991 authored by Niels Möller's avatar Niels Möller
Browse files

* src/tty.c, src/tty.h: Signedness fixes.

Rev: src/tty.c:1.8
Rev: src/tty.h:1.8
parent 42fd0f85
......@@ -60,7 +60,7 @@ int tty_makeraw(int fd)
return 0;
}
int tty_getwinsize(int fd, int *w, int *h, int *wp, int *hp)
int tty_getwinsize(int fd, UINT32 *w, UINT32 *h, UINT32 *wp, UINT32 *hp)
{
struct winsize ws;
int rc;
......@@ -77,7 +77,7 @@ int tty_getwinsize(int fd, int *w, int *h, int *wp, int *hp)
return 0;
}
int tty_setwinsize(int fd, int w, int h, int wp, int hp)
int tty_setwinsize(int fd, UINT32 w, UINT32 h, UINT32 wp, UINT32 hp)
{
struct winsize ws;
......
......@@ -32,8 +32,8 @@ int tty_getattr(int fd, struct termios *ios);
int tty_setattr(int fd, struct termios *ios);
int tty_makeraw(int fd);
int tty_getwinsize(int fd, int *w, int *h, int *wp, int *hp);
int tty_setwinsize(int fd, int w, int h, int wp, int hp);
int tty_getwinsize(int fd, UINT32 *w, UINT32 *h, UINT32 *wp, UINT32 *hp);
int tty_setwinsize(int fd, UINT32 w, UINT32 h, UINT32 wp, UINT32 hp);
struct lsh_string *tty_encode_term_mode(struct termios *ios);
int tty_decode_term_mode(struct termios *ios, UINT32 t_len, UINT8 *t_modes);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment