[RSP] Remove _WIN32-isms from body def. to AsciiToHex.

This commit is contained in:
2016-02-11 17:00:30 -05:00
parent 9b5f429a97
commit 2a13b62d0f
1 changed files with 5 additions and 4 deletions

View File

@ -98,14 +98,15 @@ const char * AboutMsg ( void )
} }
/************ Functions ***********/ /************ Functions ***********/
DWORD AsciiToHex (char * HexValue) uint32_t AsciiToHex(char * HexValue)
{ {
DWORD Value = 0; size_t Finish, Count;
uint32_t Value = 0;
size_t Finish = strlen(HexValue); Finish = strlen(HexValue);
if (Finish > 8 ) { Finish = 8; } if (Finish > 8 ) { Finish = 8; }
for (size_t Count = 0; Count < Finish; Count++) for (Count = 0; Count < Finish; Count++)
{ {
Value = (Value << 4); Value = (Value << 4);
switch( HexValue[Count] ) switch( HexValue[Count] )