From b84b09e935f8cddf1d9ea044cc7c4ad1e2ae6bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81?= Date: Sun, 4 Jun 2017 19:28:45 +0800 Subject: [PATCH] src/winusb: copy_file: Use `local` keyword for function argument declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ๆž—ๅšไป --- src/winusb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/winusb b/src/winusb index f36b038..47f459c 100755 --- a/src/winusb +++ b/src/winusb @@ -701,9 +701,9 @@ hideNoErr(){ # Also report progress statistics copy_file(){ util_check_function_parameters_quantity 3 "${#}" - source_file="${1}"; shift - dest_file="${1}"; shift - whole_current_size="${1}" + local -r source_file="${1}"; shift + local -r dest_file="${1}"; shift + local -ir whole_current_size="${1}" # Calculate block count of the source file size=$(\