Change interface to bb_lookup_host, dont try and set port inside this
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Dec 2003 01:47:18 +0000 (01:47 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Dec 2003 01:47:18 +0000 (01:47 -0000)
commitffccf6eb5de311a3db8c3d7f7496e2f0cad69a23
tree859f5849c30de6cb69bf6336af6d2228402f2395
parent03d8091859f45a6bb5e3aadc110b279e789399f2
Change interface to bb_lookup_host, dont try and set port inside this
function as there is no gracefull way of handling failures.
Rename bb_getport to bb_lookup_port, allow a default port to be
specified so it always returns a correct value.
Modify ftpgetput/rdate/wget to use the new interface.
wget/rdate now use etc/services with a falback default value.
include/libbb.h
libbb/xconnect.c
networking/ftpgetput.c
networking/telnet.c
networking/wget.c
util-linux/rdate.c