Pārlūkot izejas kodu

Getting rid of warnings.

Michele Orrù 11 gadi atpakaļ
vecāks
revīzija
7c288c67f0
3 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 0 1
      src/cmdline.c
  2. 1 1
      src/qa.c
  3. 1 2
      src/qa_sock.c

+ 0 - 1
src/cmdline.c

@@ -44,7 +44,6 @@ int main(int argc, char** argv)
 {
   char opt;
   int option_index;
-  size_t i;
 
   struct option long_options[] = {
     {"help", no_argument, NULL, 'h'},

+ 1 - 1
src/qa.c

@@ -41,7 +41,7 @@ X509* get_local_cert(const char *src)
  */
 int qa_init(const struct qa_conf* conf)
 {
-  X509 *crt;
+  X509 *crt = NULL;
 
   /* bind stdout/stderr to a BIO shit to be used externally */
   bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);

+ 1 - 2
src/qa_sock.c

@@ -154,9 +154,8 @@ static int verify_callback(int ok, X509_STORE_CTX* ctx)
  */
 struct qa_connection* qa_connection_new(char* address)
 {
-  struct qa_connection* c;
+  struct qa_connection* c = NULL;
   char *host, *port;
-  int err;
 
   /* parse input address */
   if (!host_port(address, &host, &port)) goto error;