remove duplication

This commit is contained in:
berkeviktor@aol.com 2010-10-21 06:31:11 +02:00
parent 45155a600a
commit 82be515937
1 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,7 @@ static xchat_plugin *ph; /* plugin handle */
void void
sha256_hash_string (unsigned char hash[SHA256_DIGEST_LENGTH], char outputBuffer[65]) 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++) for (i = 0; i < SHA256_DIGEST_LENGTH; i++)
{ {
sprintf(outputBuffer + (i * 2), "%02x", hash[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_hook_print (ph, "DCC Offer", XCHAT_PRI_NORM, dccoffer_cb, NULL);
xchat_print (ph, "Checksum plugin loaded\n"); xchat_print (ph, "Checksum plugin loaded\n");
return 1; return 1;
} }