commit dd9d5927a13daa1f31fa48d529b268ff02d004e6 parent 06421c01b9a73b681fe7be8ded2bc7441c652be7 Author: Russ Cox <rsc@swtch.com> Date: Sat, 5 Jul 2008 10:01:43 -0400 lib9: declare n in OpenBSD disksize (Eric Grosse) Diffstat:
M | src/lib9/_p9dir.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c @@ -48,6 +48,8 @@ static vlong disksize(int fd, struct stat *st) { struct disklabel lab; + int n; + if(!S_ISCHR(st->st_mode)) return 0; if(ioctl(fd, DIOCGDINFO, &lab) < 0)