Skip to content

Commit

Permalink
Merge pull request #69 from vrecan/fix_build
Browse files Browse the repository at this point in the history
Fix windows compile issues
  • Loading branch information
shirou committed Sep 3, 2015
2 parents 47f6760 + 85a89e7 commit af29b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disk/disk_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
const WaitMSec = 500

func DiskUsage(path string) (*DiskUsageStat, error) {
ret := DiskUsageStat{}
ret := &DiskUsageStat{}

lpFreeBytesAvailable := int64(0)
lpTotalNumberOfBytes := int64(0)
Expand All @@ -40,7 +40,7 @@ func DiskUsage(path string) (*DiskUsageStat, error) {
if diskret == 0 {
return nil, err
}
ret := &DiskUsageStat{
ret = &DiskUsageStat{
Path: path,
Total: uint64(lpTotalNumberOfBytes),
Free: uint64(lpTotalNumberOfFreeBytes),
Expand Down

0 comments on commit af29b38

Please sign in to comment.