]> git.e2factory.org Git - e2factory.git/commitdiff
hash: make hash_file() local
authorTobias Ulmer <tu@emlix.com>
Thu, 1 Dec 2016 19:23:11 +0000 (20:23 +0100)
committerTobias Ulmer <tu@emlix.com>
Thu, 1 Dec 2016 19:23:11 +0000 (20:23 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/hash.lua

index f9a32340ec0ff8fbba1d5d6a10b20bf07512a349..e9693a59d14009e5126918410010a6ae3963cde4 100644 (file)
@@ -197,7 +197,7 @@ end
 -- @param path string: the full path to the file
 -- @return True on success, false on error.
 -- @return Error object on failure.
-function hash.hash_file(hc, path)
+local function hash_file(hc, path)
 
     local function _hash_file(hc, f)
         local rc, re, buf
@@ -332,7 +332,7 @@ function hash.hash_file_once(path)
 
     hc = hash.hash_start()
 
-    rc, re = hash.hash_file(hc, path)
+    rc, re = hash_file(hc, path)
     if not rc then
         hash.hash_finish(hc)
         return false, re