summaryrefslogtreecommitdiff
path: root/usr.bin/mg/file.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 05:03:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 05:03:35 +0000
commit8527c321a0e9230d939b8721c2111a7a73cd92cc (patch)
treeb6c3b75535ccb6bdafa8e34170fe95933f3095d4 /usr.bin/mg/file.c
parent167baa6dbeaf7a2b1770b810f3bc927d0ae07723 (diff)
few more int that can become a size_t
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r--usr.bin/mg/file.c9
1 files changed, 5 insertions, 4 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");