lib9: declare n in OpenBSD disksize (Eric Grosse)
This commit is contained in:
parent
06421c01b9
commit
dd9d5927a1
@ -48,6 +48,8 @@ static vlong
|
|||||||
disksize(int fd, struct stat *st)
|
disksize(int fd, struct stat *st)
|
||||||
{
|
{
|
||||||
struct disklabel lab;
|
struct disklabel lab;
|
||||||
|
int n;
|
||||||
|
|
||||||
if(!S_ISCHR(st->st_mode))
|
if(!S_ISCHR(st->st_mode))
|
||||||
return 0;
|
return 0;
|
||||||
if(ioctl(fd, DIOCGDINFO, &lab) < 0)
|
if(ioctl(fd, DIOCGDINFO, &lab) < 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user