mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
satisfy valgrind
This commit is contained in:
parent
a3ad5254ee
commit
ceecb31310
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ disksize(int fd, int dev)
|
|||
long l;
|
||||
struct hd_geometry geo;
|
||||
|
||||
memset(&geo, 0, sizeof geo);
|
||||
l = 0;
|
||||
u64 = 0;
|
||||
#ifdef BLKGETSIZE64
|
||||
if(ioctl(fd, BLKGETSIZE64, &u64) >= 0)
|
||||
return u64;
|
||||
|
|
Loading…
Reference in a new issue