summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmServer/sources
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-26 19:01:12 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-03-05 23:42:35 +0100
commit8aa0c08b30c7630cb43252d00d8e8b3193a5258e (patch)
treeb918248c145f8c0dd9664f3c32763812e1643c48 /admin/Sources/Services/ogAdmServer/sources
parent08815ac98810f0c4737ff7370b2b78c50b909c2f (diff)
#967 Replace remaining C++ code
Diffstat (limited to 'admin/Sources/Services/ogAdmServer/sources')
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
index 8ee8342b..562a39de 100644
--- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
+++ b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
@@ -61,7 +61,7 @@ static bool tomaConfiguracion(const char *filecfg)
return false;
}
- servidoradm[0] = (char) NULL; //inicializar variables globales
+ servidoradm[0] = '\0'; //inicializar variables globales
line = fgets(buf, sizeof(buf), fcfg);
while (line != NULL) {
@@ -1191,7 +1191,7 @@ bool respuestaConsola(int socket_c, TRAMA *ptrTrama, int res)
bool Levanta(char *ptrIP[], char *ptrMacs[], int lon, char *mar)
{
unsigned int on = 1;
- sockaddr_in local;
+ struct sockaddr_in local;
int i, res;
int s;
@@ -1260,7 +1260,7 @@ static bool wake_up_broadcast(int sd, struct sockaddr_in *client,
freeifaddrs(ifaddr);
ret = sendto(sd, msg, sizeof(*msg), 0,
- (sockaddr *)client, sizeof(*client));
+ (struct sockaddr *)client, sizeof(*client));
if (ret < 0) {
syslog(LOG_ERR, "failed to send broadcast wol\n");
return false;
@@ -1278,7 +1278,7 @@ static bool wake_up_unicast(int sd, struct sockaddr_in *client,
client->sin_addr.s_addr = addr->s_addr;
ret = sendto(sd, msg, sizeof(*msg), 0,
- (sockaddr *)client, sizeof(*client));
+ (struct sockaddr *)client, sizeof(*client));
if (ret < 0) {
syslog(LOG_ERR, "failed to send unicast wol\n");
return false;