use inet_aton instead of inet_pton for compatibility

This commit is contained in:
Duncan Laurie 2005-01-12 21:08:56 +00:00
parent 072986b669
commit 651466fc41

View File

@ -1378,7 +1378,7 @@ int ipmi_lan_open(struct ipmi_intf * intf)
s->addr.sin_family = AF_INET;
s->addr.sin_port = htons(s->port);
rc = inet_pton(AF_INET, s->hostname, &s->addr.sin_addr);
rc = inet_aton(s->hostname, &s->addr.sin_addr);
if (rc <= 0) {
struct hostent *host = gethostbyname(s->hostname);
if (host == NULL) {