diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-06-05 16:32:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-06-05 16:32:22 +0000 |
commit | 0440d325d9dcef2170f2b7695d06d0ba10e9875d (patch) | |
tree | 549de95546dfb60b6e4d4be168a7d5e184b9f8a6 | |
parent | 36c0871c2380165fc018ec085f8c8352deffa6f3 (diff) | |
download | rtmux-0440d325d9dcef2170f2b7695d06d0ba10e9875d.tar.gz rtmux-0440d325d9dcef2170f2b7695d06d0ba10e9875d.tar.bz2 rtmux-0440d325d9dcef2170f2b7695d06d0ba10e9875d.zip |
Shut up gcc4 warnings.
-rw-r--r-- | array.h | 2 | ||||
-rw-r--r-- | tty.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -47,7 +47,7 @@ } \ } while (0) -#define ARRAY_EMPTY(a) ((a) == NULL || (a)->num == 0) +#define ARRAY_EMPTY(a) (((void *) (a)) == NULL || (a)->num == 0) #define ARRAY_LENGTH(a) ((a)->num) #define ARRAY_DATA(a) ((a)->list) @@ -1090,7 +1090,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy) * Use HPA if change is larger than absolute, otherwise move * the cursor with CUB/CUF. */ - if (abs(change) > cx && tty_term_has(term, TTYC_HPA)) { + if ((u_int) abs(change) > cx && tty_term_has(term, TTYC_HPA)) { tty_putcode1(tty, TTYC_HPA, cx); goto out; } else if (change > 0 && tty_term_has(term, TTYC_CUB)) { @@ -1126,7 +1126,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy) * Try to use VPA if change is larger than absolute or if this * change would cross the scroll region, otherwise use CUU/CUD. */ - if (abs(change) > cy || + if ((u_int) abs(change) > cy || (change < 0 && cy - change > tty->rlower) || (change > 0 && cy - change < tty->rupper)) { if (tty_term_has(term, TTYC_VPA)) { |