mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
htons() is not needed when using getaddrinfo (sf.net #3055612)
patch sumbitted by Ben Kibbey
This commit is contained in:
parent
77d4a55dcc
commit
5e6a5fdb3c
@ -258,7 +258,7 @@ int apcupsd_scan_arg(const char *arg)
|
||||
if (sscanf(arg, "%63s %d", host, &port) != 2)
|
||||
return 1;
|
||||
|
||||
apcupsd.port = htons(port);
|
||||
apcupsd.port = port;
|
||||
strncpy(apcupsd.host, host, sizeof(apcupsd.host));
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user