1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:10:04 -07:00

Change the name of the result variable so that it does not

hide the package "ip".

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=15914
CL=15914
This commit is contained in:
Ian Lance Taylor 2008-09-25 17:36:37 -07:00
parent 3548350d3e
commit f023b7a997

View File

@ -81,7 +81,7 @@ func dtoi(s string) (n int, ok bool) {
// Convert "host:port" into IP address and port. // Convert "host:port" into IP address and port.
// For now, host and port must be numeric literals. // For now, host and port must be numeric literals.
// Eventually, we'll have name resolution. // Eventually, we'll have name resolution.
func HostPortToIP(net string, hostport string) (ip *[]byte, iport int, err *os.Error) { func HostPortToIP(net string, hostport string) (ipaddr *[]byte, iport int, err *os.Error) {
var host, port string; var host, port string;
host, port, err = SplitHostPort(hostport); host, port, err = SplitHostPort(hostport);
if err != nil { if err != nil {