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,7 +9,8 @@ usage() {
9 9
 }
10 10
 
11 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 14
     debug -v Cache cache_size
14 15
     if test "$cache_size" -gt 0;
15 16
     then
@@ -40,9 +41,9 @@ get_fps() {
40 41
 }
41 42
 
42 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 47
     #shellcheck disable=SC2034
47 48
     while true; do case "$1" in
48 49
         *:*) Conn="$1";             shift ;;