summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-26 13:38:13 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-26 13:38:13 +0200
commite3be4a0e0abfe0368aba0b03c2ec59af8385ef3a (patch)
treebb988ce83237fb6ea0ec0f0e2b29dee684389aa1
parent46b0fe70ebc83500c5c2adbc124fbfb4d065d963 (diff)
Eliminate some more plugin warnings
-rw-r--r--plugins/checksum/checksum.c12
-rw-r--r--plugins/exec/exec.c6
-rw-r--r--plugins/sasl/sasl.c6
-rw-r--r--plugins/upd/upd.c2
-rw-r--r--plugins/wmpa/wmpa.def2
5 files changed, 15 insertions, 13 deletions
diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c
index d00249b0..fed5706c 100644
--- a/plugins/checksum/checksum.c
+++ b/plugins/checksum/checksum.c
@@ -52,9 +52,9 @@
 #define DEFAULT_LIMIT 256									/* default size is 256 MiB */
 
 static xchat_plugin *ph;									/* plugin handle */
-static const char name[] = "Checksum";
-static const char desc[] = "Calculate checksum for DCC file transfers";
-static const char version[] = "3.1";
+static char name[] = "Checksum";
+static char desc[] = "Calculate checksum for DCC file transfers";
+static char version[] = "3.1";
 
 /* Use of OpenSSL SHA256 interface: http://adamlamers.com/?p=5 */
 static void
@@ -225,8 +225,8 @@ dccoffer_cb (char *word[], void *userdata)
 	return XCHAT_EAT_NONE;
 }
 
-static void
-checksum (char *word[], void *userdata)
+static int
+checksum (char *word[], char *word_eol[], void *userdata)
 {
 	if (!g_ascii_strcasecmp ("GET", word[2]))
 	{
@@ -242,6 +242,8 @@ checksum (char *word[], void *userdata)
 		xchat_printf (ph, "  GET - print the maximum file size (in MiB) to be hashed\n");
 		xchat_printf (ph, "  SET <filesize> - set the maximum file size (in MiB) to be hashed\n");
 	}
+
+	return XCHAT_EAT_NONE;
 }
 
 int
diff --git a/plugins/exec/exec.c b/plugins/exec/exec.c
index 6f3e350c..e2e2f5cf 100644
--- a/plugins/exec/exec.c
+++ b/plugins/exec/exec.c
@@ -26,9 +26,9 @@
 #include "hexchat-plugin.h"
 
 static xchat_plugin *ph;   /* plugin handle */
-static const char name[] = "Exec";
-static const char desc[] = "Execute commands inside HexChat";
-static const char version[] = "1.1";
+static char name[] = "Exec";
+static char desc[] = "Execute commands inside HexChat";
+static char version[] = "1.1";
 
 static int
 run_command (char *word[], char *word_eol[], void *userdata)
diff --git a/plugins/sasl/sasl.c b/plugins/sasl/sasl.c
index 7978251e..cdf225b1 100644
--- a/plugins/sasl/sasl.c
+++ b/plugins/sasl/sasl.c
@@ -41,9 +41,9 @@
 #include "hexchat-plugin.h"
 
 static xchat_plugin *ph;   /* plugin handle */
-static const char name[] = "SASL";
-static const char desc[] = "SASL authentication plugin for HexChat";
-static const char version[] = "1.2";
+static char name[] = "SASL";
+static char desc[] = "SASL authentication plugin for HexChat";
+static char version[] = "1.2";
 static const char sasl_help[] = "SASL Usage:\n /SASL ADD <login> <password> <network>, enable/update SASL authentication for given network\n /SASL DEL <network>, disable SASL authentication for given network\n /SASL LIST, get the list of SASL-enabled networks\n";
 
 struct sasl_info
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 0c4c3e52..d7cabe59 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -32,7 +32,7 @@ static xchat_plugin *ph;   /* plugin handle */
 static char name[] = "Update Checker";
 static char desc[] = "Check for HexChat updates automatically";
 static char version[] = "4.0";
-static char upd_help[] = "Update Checker Usage:\n  /UPDCHK, check for HexChat updates\n  /UPDCHK SET delay|format, set startup delay or check frequency\n";
+static const char upd_help[] = "Update Checker Usage:\n  /UPDCHK, check for HexChat updates\n  /UPDCHK SET delay|format, set startup delay or check frequency\n";
 
 static char*
 check_version ()
diff --git a/plugins/wmpa/wmpa.def b/plugins/wmpa/wmpa.def
index 3555558e..d0a3b042 100644
--- a/plugins/wmpa/wmpa.def
+++ b/plugins/wmpa/wmpa.def
@@ -1,6 +1,6 @@
 ; wmpa.def : Declares the module parameters for the DLL.

 

-LIBRARY      "xcwmpa"

+LIBRARY      "hcwmpa"

 

 EXPORTS

     ; Explicit exports can go here