summaryrefslogtreecommitdiffstats
path: root/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
commit3b5ec70eaeb1e1fb598e5354e97f59b1513623b3 (patch)
treef6d3160187f0e9fb5405ed9c5f7fe010f9b52a4a /sources
parent39918fa9707631af8e783660079ff6ef3cb660ee (diff)
#967 Replace remaining C++ code
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 8ee8342..562a39d 100644
--- a/sources/ogAdmServer.cpp
+++ b/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;