Skip to content

Commit

Permalink
src/winusb: copy_file: Use local keyword for function argument decl…
Browse files Browse the repository at this point in the history
…aration

Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Jun 4, 2017
1 parent f19867a commit b84b09e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/winusb
Expand Up @@ -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=$(\
Expand Down

0 comments on commit b84b09e

Please sign in to comment.