silence warnings, and output
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Sep 2008 16:43:05 +0000 (09:43 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Sep 2008 16:43:05 +0000 (09:43 -0700)
dtls.c
ssl.c

diff --git a/dtls.c b/dtls.c
index aa38ec3..2480f21 100644 (file)
--- a/dtls.c
+++ b/dtls.c
@@ -290,7 +290,8 @@ int dtls_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Sent DTLS DPD\n");
                }
 
-               printf("Next DTLS DPD due in %d seconds\n", (due - now));
+               if (verbose)
+                       printf("Next DTLS DPD due in %ld seconds\n", (due - now));
                if (*timeout > (due - now) * 1000)
                        *timeout = (due - now) * 1000;
        }
@@ -313,7 +314,8 @@ int dtls_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Sent DTLS Keepalive\n");
                }
 
-               printf("Next DTLS Keepalive due in %d seconds\n", (due - now));
+               if (verbose)
+                       printf("Next DTLS Keepalive due in %ld seconds\n", (due - now));
                if (*timeout > (due - now) * 1000)
                        *timeout = (due - now) * 1000;
        }
diff --git a/ssl.c b/ssl.c
index 57b1a96..ac608d5 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -592,7 +592,8 @@ int ssl_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Sent SSL DPD\n");
                }
 
-               printf("Next SSL DPD due in %d seconds\n", (due - now));
+               if (verbose)
+                       printf("Next SSL DPD due in %ld seconds\n", (due - now));
                if (*timeout > (due - now) * 1000)
                        *timeout = (due - now) * 1000;
        }
@@ -616,7 +617,8 @@ int ssl_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Sent SSL Keepalive\n");
                }
 
-               printf("Next SSL Keepalive due in %d seconds\n", (due - now));
+               if (verbose)
+                       printf("Next SSL Keepalive due in %ld seconds\n", (due - now));
                if (*timeout > (due - now) * 1000)
                        *timeout = (due - now) * 1000;
        }