mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 13:00:45 +00:00
fix apcupsd compilation
This commit is contained in:
parent
a087333285
commit
6b45fe1ef0
@ -203,8 +203,8 @@ int update_apcupsd(void)
|
|||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
hints.ai_flags = 0;
|
hints.ai_flags = 0;
|
||||||
hints.ai_protocol = 0;
|
hints.ai_protocol = 0;
|
||||||
snprintf(portbuf, 8, "%d", info.apcupsd.port);
|
snprintf(portbuf, 8, "%d", apcupsd.port);
|
||||||
res = getaddrinfo(info.apcupsd.host, portbuf, &hints, &ai);
|
res = getaddrinfo(apcupsd.host, portbuf, &hints, &ai);
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
NORM_ERR("APCUPSD getaddrinfo: %s", gai_strerror(res));
|
NORM_ERR("APCUPSD getaddrinfo: %s", gai_strerror(res));
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user