浏览代码

Add docstring to local variables

Alois Mahdal 9 年前
父节点
当前提交
6c1adc7cd8
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5
    4
      bin/ssl_fp

+ 5
- 4
bin/ssl_fp 查看文件

9
 }
9
 }
10
 
10
 
11
 cached() {
11
 cached() {
12
-    local cache_size=$(stat -c %s "$Cache")
12
+    local cache_size    # size of cache, just to help debugging
13
+    cache_size=$(stat -c %s "$Cache")
13
     debug -v Cache cache_size
14
     debug -v Cache cache_size
14
     if test "$cache_size" -gt 0;
15
     if test "$cache_size" -gt 0;
15
     then
16
     then
40
 }
41
 }
41
 
42
 
42
 main() {
43
 main() {
43
-    local Conn
44
-    local Cache
45
-    local es
44
+    local Conn      # connection target (SERVER:PORT)
45
+    local Cache     # cert cache (for re-computing hashes)
46
+    local es        # exit status
46
     #shellcheck disable=SC2034
47
     #shellcheck disable=SC2034
47
     while true; do case "$1" in
48
     while true; do case "$1" in
48
         *:*) Conn="$1";             shift ;;
49
         *:*) Conn="$1";             shift ;;