Fix compilation warnings
authorPekka Riikonen <priikone@silcnet.org>
Mon, 5 May 2014 08:23:48 +0000 (11:23 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 5 May 2014 08:23:48 +0000 (11:23 +0300)
apps/irssi/src/silc/core/client_ops.c
lib/silcclient/client_connect.c
lib/silcclient/command_reply.c
lib/silcske/silcske.c

index 0b0396496a13d3cc1889fbefc3dc9e9a3d0c30a9..25db9eae17f7fcce96171ca588cd9594e9a15ac7 100644 (file)
@@ -2476,7 +2476,7 @@ silc_verify_public_key_internal(SilcClient client, SilcClientConnection conn,
   SilcPublicKey local_pubkey;
   SilcSILCPublicKey silc_pubkey;
   SilcUInt16 port;
-  SILC_SERVER_REC *server;
+  SILC_SERVER_REC *server = NULL;
   const char *hostname, *ip;
   unsigned char *pk;
   SilcUInt32 pk_len;
index de877d54dbfabd7c37081ccbf73deed948633b9e..b58e0f7ed638dc8f402b972fdfa01ee7061f84a3 100644 (file)
@@ -469,7 +469,6 @@ SILC_FSM_STATE(silc_client_st_connect_key_exchange)
   SilcClientConnection conn = fsm_context;
   SilcClient client = conn->client;
   SilcSKEParamsStruct params = {};
-  SilcClientID cid;
 
   SILC_LOG_DEBUG(("Starting key exchange protocol"));
 
index 45de171ef1d72b79c26f2524757f07b1025da66e..57c339aaf334adbb5e1a3d3699a000d6039cf46a 100644 (file)
@@ -1367,7 +1367,7 @@ SILC_FSM_STATE(silc_client_command_reply_motd)
          line[0] = ' ';
 
        if (cmd->verbose)
-         SAY(client, conn, SILC_CLIENT_MESSAGE_INFO, "%s", line);
+         SAY(client, conn, SILC_CLIENT_MESSAGE_AUDIT, "%s", line);
 
        if (!strlen(cp))
          break;
index cc40e129219aae55491d4d3ea1eb127c890907e6..ea2aa9ca5d961ce8c0a13a33e687d81b86cf4d54 100644 (file)
@@ -1708,7 +1708,7 @@ SILC_FSM_STATE(silc_ske_st_initiator_phase4)
   SilcSKEStatus status;
   SilcSKEKEPayload payload;
   unsigned char hash[SILC_HASH_MAXLEN];
-  SilcUInt32 hash_len;
+  SilcUInt32 hash_len = 0;
   int key_len, block_len;
 
   if (ske->aborted) {