diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-26 13:38:13 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-26 13:38:13 +0200 |
commit | e3be4a0e0abfe0368aba0b03c2ec59af8385ef3a (patch) | |
tree | bb988ce83237fb6ea0ec0f0e2b29dee684389aa1 /plugins/checksum/checksum.c | |
parent | 46b0fe70ebc83500c5c2adbc124fbfb4d065d963 (diff) |
Eliminate some more plugin warnings
Diffstat (limited to 'plugins/checksum/checksum.c')
-rw-r--r-- | plugins/checksum/checksum.c | 12 |
1 files changed, 7 insertions, 5 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 |