X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fip_util.c;h=f443185c79edfbb24d80be49cd9eee24f0cc7875;hb=ba7f7e053daae846a54a1d08d3d133a5f1266ace;hp=1f6a76e480f935a8410188d079e8424bb45b5ea3;hpb=d883b2dbafeed3ebd9d7a56ab1469373bd001a3b;p=ppp.git diff --git a/pppd/plugins/radius/ip_util.c b/pppd/plugins/radius/ip_util.c index 1f6a76e..f443185 100644 --- a/pppd/plugins/radius/ip_util.c +++ b/pppd/plugins/radius/ip_util.c @@ -26,7 +26,7 @@ * Returns: 0 on failure */ -UINT4 rc_get_ipaddr (char *host) +UINT4 rc_get_ipaddr (const char *host) { struct hostent *hp; @@ -51,7 +51,7 @@ UINT4 rc_get_ipaddr (char *host) * */ -int rc_good_ipaddr (char *addr) +int rc_good_ipaddr (const char *addr) { int dot_count; int digit_count; @@ -127,7 +127,7 @@ UINT4 rc_own_ipaddress(void) static UINT4 this_host_ipaddr = 0; if (!this_host_ipaddr) { - if ((this_host_ipaddr = rc_get_ipaddr (hostname)) == 0) { + if ((this_host_ipaddr = rc_get_ipaddr (ppp_hostname())) == 0) { error("rc_own_ipaddress: couldn't get own IP address"); return 0; }