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:
@@ -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. ********/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user