lib9: declare n in OpenBSD disksize (Eric Grosse)

This commit is contained in:
Russ Cox 2008-07-05 10:01:43 -04:00
parent 06421c01b9
commit dd9d5927a1

View file

@ -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)