1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 05:56:38 +02:00

Remove duplicated copy of binary_to_hex()

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1760 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2008-11-19 23:23:31 +00:00
parent ba20023fb4
commit d3b2d4c5a4
-17
View File
@@ -14,23 +14,6 @@
#include "module.h"
void binary_to_hex(unsigned char *bin, char *hex, int length)
{
static const char trans[] = "0123456789ABCDEF";
int i;
for(i = 0; i < length; i++)
{
hex[i << 1] = trans[bin[i] >> 4];
hex[(i << 1) + 1] = trans[bin[i] & 0xf];
}
hex[i << 1] = '\0';
}
/*************************************************************************/
/******** Code specific to the type of encryption. ********/