From: Miroslav Spousta <[email protected]>

---
 config.c   | 7 +------
 http.c     | 2 +-
 pound.c    | 1 -
 poundctl.c | 9 +++------
 svc.c      | 2 --
 5 files changed, 5 insertions(+), 16 deletions(-)
 mode change 100644 => 100755 http.c
 mode change 100644 => 100755 svc.c

diff --git a/config.c b/config.c
index 077fa60..ae45991 100644
--- a/config.c
+++ b/config.c
@@ -225,7 +225,6 @@ parse_be(const int is_emergency)
     char        lin[MAXBUF];
     BACKEND     *res;
     int         has_addr, has_port;
-    struct hostent      *host;
     struct sockaddr_in  in;
     struct sockaddr_in6 in6;
 
@@ -904,7 +903,6 @@ parse_HTTPS(void)
     MATCHER             *m;
     int                 has_addr, has_port, has_other;
     long                ssl_op_enable, ssl_op_disable;
-    struct hostent      *host;
     struct sockaddr_in  in;
     struct sockaddr_in6 in6;
     POUND_CTX           *pc;
@@ -1009,7 +1007,7 @@ parse_HTTPS(void)
 #ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
             /* we have support for SNI */
             FILE        *fcert;
-            char        server_name[MAXBUF], *cp;
+            char        server_name[MAXBUF];
             X509        *x509;
 
             if(has_other)
@@ -1201,8 +1199,6 @@ parse_HTTPS(void)
                 svc->next = parse_service(lin + matches[1].rm_so);
             }
         } else if(!regexec(&End, lin, 4, matches, 0)) {
-            X509_STORE  *store;
-
             if(!has_addr || !has_port || res->ctx == NULL)
                 conf_err("ListenHTTPS missing Address, Port or Certificate - 
aborted");
 #ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
@@ -1366,7 +1362,6 @@ void
 config_parse(const int argc, char **const argv)
 {
     char    *conf_name;
-    FILE    *f_conf;
     int     c_opt, check_only;
 
     if(regcomp(&Empty, "^[ \t]*$", REG_ICASE | REG_NEWLINE | REG_EXTENDED)
diff --git a/http.c b/http.c
old mode 100644
new mode 100755
index 02242a4..5076872
--- a/http.c
+++ b/http.c
@@ -42,7 +42,7 @@ static void
 err_reply(BIO *const c, const char *head, const char *txt)
 {
     BIO_printf(c, err_response, head, strlen(txt), txt);
-    BIO_flush(c);
+    (void)BIO_flush(c);
     return;
 }
 
diff --git a/pound.c b/pound.c
index 42a869d..d008468 100644
--- a/pound.c
+++ b/pound.c
@@ -233,7 +233,6 @@ main(const int argc, char **argv)
     LISTENER            *lstn;
     pthread_t           thr;
     pthread_attr_t      attr;
-    struct sched_param  sp;
     uid_t               user_id;
     gid_t               group_id;
     FILE                *fpid;
diff --git a/poundctl.c b/poundctl.c
index ed6d2a7..717cde5 100755
--- a/poundctl.c
+++ b/poundctl.c
@@ -130,7 +130,7 @@ sess_prt(const int sock)
 {
     TABNODE     sess;
     int         n_be, n_sess, cont_len;
-    char        buf[KEY_SIZE + 1], escaped[KEY_SIZE * 2 + 1];
+    char        buf[KEY_SIZE + 1];
 
     n_sess = 0;
     while(read(sock, (void *)&sess, sizeof(TABNODE)) == sizeof(TABNODE)) {
@@ -214,13 +214,10 @@ int
 main(const int argc, char **argv)
 {
     CTRL_CMD    cmd;
-    int         sock, n_lstn, n_svc, n_be, n_sess, i;
-    char        *arg0, *sock_name, buf[KEY_SIZE + 1];
+    int         sock, n_lstn, i;
+    char        *arg0, *sock_name;
     int         c_opt, en_lst, de_lst, en_svc, de_svc, en_be, de_be, a_sess, 
d_sess, is_set;
     LISTENER    lstn;
-    SERVICE     svc;
-    BACKEND     be;
-    TABNODE     sess;
     struct  sockaddr_storage    a;
 
     arg0 = *argv;
diff --git a/svc.c b/svc.c
old mode 100644
new mode 100755
index 7a7f752..ec7e74e
--- a/svc.c
+++ b/svc.c
@@ -219,7 +219,6 @@ logmsg(const int priority, const char *fmt, ...)
 {
     char    buf[MAXBUF + 1];
     va_list ap;
-    struct tm   *t_now, t_res;
 
     buf[MAXBUF] = '\0';
     va_start(ap, fmt);
@@ -242,7 +241,6 @@ va_dcl
 {
     char    buf[MAXBUF + 1];
     va_list ap;
-    struct tm   *t_now, t_res;
 
     buf[MAXBUF] = '\0';
     va_start(ap);
-- 
1.8.3.1


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to