[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.193 and 1.194

version 1.193, 2018/09/06 13:23:02 version 1.194, 2018/09/07 09:55:29
Line 122 
Line 122 
 int     strtoport(char *portstr, int udp);  int     strtoport(char *portstr, int udp);
 void    build_ports(char *);  void    build_ports(char *);
 void    help(void) __attribute__((noreturn));  void    help(void) __attribute__((noreturn));
 int     local_listen(char *, char *, struct addrinfo);  int     local_listen(const char *, const char *, struct addrinfo);
 void    readwrite(int, struct tls *);  void    readwrite(int, struct tls *);
 void    fdpass(int nfd) __attribute__((noreturn));  void    fdpass(int nfd) __attribute__((noreturn));
 int     remote_connect(const char *, const char *, struct addrinfo);  int     remote_connect(const char *, const char *, struct addrinfo);
Line 994 
Line 994 
  * address. Returns -1 on failure.   * address. Returns -1 on failure.
  */   */
 int  int
 local_listen(char *host, char *port, struct addrinfo hints)  local_listen(const char *host, const char *port, struct addrinfo hints)
 {  {
         struct addrinfo *res, *res0;          struct addrinfo *res, *res0;
         int s = -1, ret, x = 1, save_errno;          int s = -1, ret, x = 1, save_errno;

Legend:
Removed from v.1.193  
changed lines
  Added in v.1.194