[BusyBox-cvs] busybox/include libbb.h,1.123,1.124

Glenn McGrath bug1 at busybox.net
Sat Dec 20 01:47:19 UTC 2003

Update of /var/cvs/busybox/include
In directory nail:/tmp/cvs-serv1871/include

Modified Files:
Log Message:
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.

Index: libbb.h
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- libbb.h	15 Dec 2003 21:57:43 -0000	1.123
+++ libbb.h	20 Dec 2003 01:47:16 -0000	1.124
@@ -297,8 +297,8 @@
 extern int create_icmp_socket(void);
 extern int create_icmp6_socket(void);
 extern int xconnect(struct sockaddr_in *s_addr);
-extern int bb_getport(const char *port);
-extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host, const char *port);
+extern unsigned short bb_lookup_port(const char *port, unsigned short default_port);
+extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host);
 //#warning wrap this?
 char *dirname (char *path);

More information about the busybox-cvs mailing list