diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-03 05:03:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-03 05:03:35 +0000 |
commit | 8527c321a0e9230d939b8721c2111a7a73cd92cc (patch) | |
tree | b6c3b75535ccb6bdafa8e34170fe95933f3095d4 | |
parent | 167baa6dbeaf7a2b1770b810f3bc927d0ae07723 (diff) |
few more int that can become a size_t
-rw-r--r-- | usr.bin/mg/file.c | 9 | ||||
-rw-r--r-- | usr.bin/mg/ttyio.c | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 277d9140dff..1c0e38098b6 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.51 2006/04/03 00:40:56 deraadt Exp $ */ +/* $OpenBSD: file.c,v 1.52 2006/04/03 05:03:34 deraadt Exp $ */ /* This file is in the public domain. */ @@ -181,9 +181,10 @@ poptofile(int f, int n) struct buffer * findbuffer(char *fn) { - struct buffer *bp; - char bname[NBUFN], fname[NBUFN]; - unsigned int count, remain, i; + struct buffer *bp; + char bname[NBUFN], fname[NBUFN]; + unsigned int count; + size_t i, remain; if (strlcpy(fname, fn, sizeof(fname)) >= sizeof(fname)) { ewprintf("filename too long"); diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c index ae872d58de5..d47b7d6c8b2 100644 --- a/usr.bin/mg/ttyio.c +++ b/usr.bin/mg/ttyio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttyio.c,v 1.30 2006/04/03 00:40:56 deraadt Exp $ */ +/* $OpenBSD: ttyio.c,v 1.31 2006/04/03 05:03:34 deraadt Exp $ */ /* This file is in the public domain. */ @@ -26,7 +26,7 @@ int ttstarted; char obuf[NOBUF]; /* Output buffer. */ -int nobuf; /* Buffer count. */ +size_t nobuf; /* Buffer count. */ struct termios oldtty; /* POSIX tty settings. */ struct termios newtty; int nrow; /* Terminal size, rows. */ |