Browse Source

Add docstring to local variables

Alois Mahdal 8 years ago
parent
commit
6c1adc7cd8
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      bin/ssl_fp

+ 5
- 4
bin/ssl_fp View File

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 ;;