From 82be51593735727056605b8e947281c9c19592ee Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Thu, 21 Oct 2010 06:31:11 +0200 Subject: [PATCH] remove duplication --- plugins/checksum/checksum.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index 1376b355..606159fc 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -41,7 +41,7 @@ static xchat_plugin *ph; /* plugin handle */ void sha256_hash_string (unsigned char hash[SHA256_DIGEST_LENGTH], char outputBuffer[65]) { - int i = 0; + int i; for (i = 0; i < SHA256_DIGEST_LENGTH; i++) { sprintf(outputBuffer + (i * 2), "%02x", hash[i]); @@ -140,7 +140,6 @@ xchat_plugin_init (xchat_plugin *plugin_handle, char **plugin_name, char **plugi xchat_hook_print (ph, "DCC Offer", XCHAT_PRI_NORM, dccoffer_cb, NULL); xchat_print (ph, "Checksum plugin loaded\n"); - return 1; }