diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-10-21 05:34:20 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-10-21 05:34:20 +0200 |
commit | 0a2b0a25ffa99c4720ca754825e044aee670bc7c (patch) | |
tree | b309091320ebbe4549937306c651ae43748c13cc /plugins/checksum/checksum.c | |
parent | b6b8a0f630abe3b355f0c18c61ff0743d3af8e1e (diff) |
fix some compilation warnings on linux
Diffstat (limited to 'plugins/checksum/checksum.c')
-rw-r--r-- | plugins/checksum/checksum.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index 022fa940..38e2166d 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -27,6 +27,7 @@ */ #include <stdio.h> +#include <string.h> #include <malloc.h> #include <errno.h> #include <openssl/sha.h> @@ -105,7 +106,7 @@ sha256_file (char *path, char outputBuffer[65]) int dccrecv_cb(char *word[], void *userdata) { - unsigned char sum[65]; + char sum[65]; sha256_file (word[2], sum); /* try to print the checksum in the privmsg tab of the sender */ @@ -118,7 +119,7 @@ dccrecv_cb(char *word[], void *userdata) int dccoffer_cb(char *word[], void *userdata) { - unsigned char sum[65]; + char sum[65]; sha256_file (word[3], sum); xchat_commandf (ph, "raw PRIVMSG %s :SHA-256 checksum for %s (remote): %s", word[2], word[1], sum); @@ -148,4 +149,4 @@ xchat_plugin_deinit (void) { xchat_print (ph, "Checksum plugin unloaded\n"); return 1; -} +} \ No newline at end of file |