diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-09-20 12:52:31 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-09-20 12:52:31 +0000 |
commit | 37a096cb841bb2696231082c4daafd840fde3fd0 (patch) | |
tree | 9de7e715f7486a9945bfbfb54870dd803cb7316f /regress/sys | |
parent | 09a50850fd470ef8f7da52a3ea6322d45a4ec7bc (diff) |
Fix compiler warning and whitespace.
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/uvm/mmap_4g/mmap_4g.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sys/uvm/mmap_4g/mmap_4g.c b/regress/sys/uvm/mmap_4g/mmap_4g.c index 7247f28b422..c2fb95ebe61 100644 --- a/regress/sys/uvm/mmap_4g/mmap_4g.c +++ b/regress/sys/uvm/mmap_4g/mmap_4g.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmap_4g.c,v 1.3 2010/06/20 17:56:07 phessler Exp $ */ +/* $OpenBSD: mmap_4g.c,v 1.4 2019/09/20 12:52:30 bluhm Exp $ */ /* * Public domain. 2005, Otto Moerbeek <otto@drijf.net> @@ -20,9 +20,9 @@ int main() { - int fd, i; + int fd; off_t offset; - size_t sz; + size_t i, sz; char *p, buf[100]; const char * file = "foo"; @@ -60,7 +60,7 @@ main() err(1, "read"); for (i = 0; i < sz; i++) if (buf[i]) - errx(1, "nonzero byte 0x%02x found at offset %zu", + errx(1, "nonzero byte 0x%02x found at offset %zu", buf[i], i); if (lseek(fd, offset, SEEK_SET) != offset) |