summaryrefslogtreecommitdiff
path: root/libbb/xconnect.c
diff options
context:
space:
mode:
authorEric Andersen2003-11-03 21:20:18 +0000
committerEric Andersen2003-11-03 21:20:18 +0000
commit04d055f4e11469f74bdde38837deefab27edb2e9 (patch)
tree2fb308c0bb612180b7bf8280d1ee5e5a76ac184c /libbb/xconnect.c
parentf6067beaa9408730c4232620330453e756d6d4f9 (diff)
downloadbusybox-04d055f4e11469f74bdde38837deefab27edb2e9.zip
busybox-04d055f4e11469f74bdde38837deefab27edb2e9.tar.gz
Fix rdate and ftpget/ftpput so they compile with the new xconnect.
I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work.
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r--libbb/xconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 2745979..2cbc840 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -18,7 +18,7 @@
#include <arpa/inet.h>
#include "libbb.h"
-int bb_getport(char *port)
+int bb_getport(const char *port)
{
int port_nr;
char *endptr;
@@ -41,7 +41,7 @@ int bb_getport(char *port)
return port_nr;
}
-void bb_lookup_host(struct sockaddr_in *s_in, char *host, char *port)
+void bb_lookup_host(struct sockaddr_in *s_in, const char *host, const char *port)
{
struct hostent *he;