fix up annoying signed/unsigned and mixed type errors

This commit is contained in:
Eric Andersen
2006-01-30 22:30:41 +00:00
parent 5e678873f9
commit 0cb6f35c33
9 changed files with 17 additions and 15 deletions

View File

@ -131,7 +131,7 @@ static struct tsession *sessions;
*/
static char *
remove_iacs(struct tsession *ts, int *pnum_totty) {
unsigned char *ptr0 = ts->buf1 + ts->wridx1;
unsigned char *ptr0 = (unsigned char *)ts->buf1 + ts->wridx1;
unsigned char *ptr = ptr0;
unsigned char *totty = ptr;
unsigned char *end = ptr + MIN(BUFSIZE - ts->wridx1, ts->size1);