[BACK]Return to netcat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nc

Diff for /src/usr.bin/nc/netcat.c between version 1.76 and 1.77

version 1.76, 2004/12/10 16:51:31 version 1.77, 2005/02/08 15:26:23
Line 86 
Line 86 
 void    help(void);  void    help(void);
 int     local_listen(char *, char *, struct addrinfo);  int     local_listen(char *, char *, struct addrinfo);
 void    readwrite(int);  void    readwrite(int);
 int     remote_connect(char *, char *, struct addrinfo);  int     remote_connect(const char *, const char *, struct addrinfo);
 int     socks_connect(char *, char *, struct addrinfo, char *, char *,  int     socks_connect(const char *, const char *, struct addrinfo, const char *, const char *,
         struct addrinfo, int);          struct addrinfo, int);
 int     udptest(int);  int     udptest(int);
 int     unix_connect(char *);  int     unix_connect(char *);
Line 104 
Line 104 
         socklen_t len;          socklen_t len;
         struct sockaddr_storage cliaddr;          struct sockaddr_storage cliaddr;
         char *proxy;          char *proxy;
         char *proxyhost = "", *proxyport = NULL;          const char *proxyhost = "", *proxyport = NULL;
         struct addrinfo proxyhints;          struct addrinfo proxyhints;
   
         ret = 1;          ret = 1;
Line 452 
Line 452 
  * port or source address if needed. Returns -1 on failure.   * port or source address if needed. Returns -1 on failure.
  */   */
 int  int
 remote_connect(char *host, char *port, struct addrinfo hints)  remote_connect(const char *host, const char *port, struct addrinfo hints)
 {  {
         struct addrinfo *res, *res0;          struct addrinfo *res, *res0;
         int s, error, x = 1;          int s, error, x = 1;

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77