summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-01-23 13:30:36 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-01-23 16:40:18 +0100
commitbcc8ccce343287a07e2686bf293839962e0831af (patch)
tree5da92dfdb18b1a0ecfefb8315ea78a392fb67f56
parent63a3d4d8fd4b0af5db59e402ea55d3001837cebc (diff)
#891 remove function to parse string in hexadecimal to binary
Wake-on-lan does not use it anymore, this function has no clients and we can just remove it.
-rw-r--r--sources/ogAdmServer.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 92b688d..7461fc0 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -1512,41 +1512,6 @@ bool WakeUp(SOCKET *s, char* iph, char *mac, char *mar)
}
return true;
}
-//_____________________________________________________________________________________________________________
-// Función: PasaHexBin
-//
-// Descripción:
-// Convierte a binario una dirección mac desde una cadena con formato XXXXXXXXXXXX
-//
-// Parámetros de entrada:
-// - cadena : Cadena con el contenido de la mac
-// - numero : la dirección mac convertida a binario (6 bytes)
-//_____________________________________________________________________________________________________________
-void PasaHexBin(char *cadena, char *numero)
-{
- int i, j, p;
- char matrizHex[] = "0123456789ABCDEF";
- char Ucadena[12], aux;
-
- for (i = 0; i < 12; i++)
- Ucadena[i] = toupper(cadena[i]);
- p = 0;
- for (i = 0; i < 12; i++) {
- for (j = 0; j < 16; j++) {
- if (Ucadena[i] == matrizHex[j]) {
- if (i % 2) {
- aux = numero[p];
- aux = (aux << 4);
- numero[p] = j;
- numero[p] = numero[p] | aux;
- p++;
- } else
- numero[p] = j;
- break;
- }
- }
- }
-}
// ________________________________________________________________________________________________________
// Función: RESPUESTA_Arrancar
//