From fe90362d742d6c57e6d1e34bbee90c71197d4c6d Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Thu, 1 Dec 2016 20:23:11 +0100 Subject: [PATCH] hash: make hash_file() local Signed-off-by: Tobias Ulmer --- generic/hash.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5