From 54335e324197588cea8d39594790837111ba1bc6 Mon Sep 17 00:00:00 2001 From: jgfrm Date: Thu, 9 Feb 2017 18:11:52 +0100 Subject: [PATCH] changes for windows --- src/cmds/restic/integration_helpers_windows_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmds/restic/integration_helpers_windows_test.go b/src/cmds/restic/integration_helpers_windows_test.go index 50f11a79c..1bef23c14 100644 --- a/src/cmds/restic/integration_helpers_windows_test.go +++ b/src/cmds/restic/integration_helpers_windows_test.go @@ -37,13 +37,12 @@ func inode(info os.FileInfo) uint64 { } func createFileSetPerHardlink(dir string) map[uint64][]string { - var stat syscall.Stat_t linkTests := make(map[uint64][]string) files, err := ioutil.ReadDir(dir) if err != nil { return nil } - for i, f := range files { + for i uint64, f := range files { linkTests[i] = append(linkTests[i], f.Name()) i++ }