summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-10-21 06:31:11 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-10-21 06:31:11 +0200
commit82be51593735727056605b8e947281c9c19592ee (patch)
treecaeb5d17a1f0b8d2c859eff387bba7c251307e71 /plugins
parent45155a600af1cbe286f8532e098e51b6f7a9f2c7 (diff)
remove duplication
Diffstat (limited to 'plugins')
-rw-r--r--plugins/checksum/checksum.c3
1 files changed, 1 insertions, 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;
 }