]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Hash explicit type
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 7a6ac37ed124474f787ccf7b1ef267e909529d46..48c2f10671ab3fa46125879b371e6adf0d34ab11 100644 (file)
--- a/run.go
+++ b/run.go
@@ -133,7 +133,7 @@ func mkdirs(pth string) error {
 }
 
 func isModified(depInfo *DepInfo, tgt *Tgt) (
-       modified bool, ourInode *Inode, hshPrev string, err error,
+       modified bool, ourInode *Inode, hshPrev Hash, err error,
 ) {
        if depInfo == nil {
                return
@@ -721,7 +721,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error {
                                goto Finish
                        }
                } else {
-                       var hsh string
+                       var hsh Hash
                        if hshPrev != "" {
                                _, err = fd.Seek(0, io.SeekStart)
                                if err != nil {