lib9: declare n in OpenBSD disksize (Eric Grosse)
This commit is contained in:
parent
06421c01b9
commit
dd9d5927a1
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue