From: Tobias Ulmer Date: Thu, 1 Dec 2016 19:23:11 +0000 (+0100) Subject: hash: make hash_file() local X-Git-Tag: e2factory-2.3.16rc1~32 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=fe90362d742d6c57e6d1e34bbee90c71197d4c6d;p=e2factory.git hash: make hash_file() local Signed-off-by: Tobias Ulmer --- diff --git a/generic/hash.lua b/generic/hash.lua index f9a3234..e9693a5 100644 --- a/generic/hash.lua +++ b/generic/hash.lua @@ -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