summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/mg/file.c9
-rw-r--r--usr.bin/mg/ttyio.c4
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. */