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.
This commit is contained in:
Eric Andersen
2003-11-03 21:20:18 +00:00
parent f6067beaa9
commit 04d055f4e1
4 changed files with 34 additions and 18 deletions

View File

@@ -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;