[BACK]Return to rfc931.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libwrap

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libwrap/rfc931.c between version 1.8.56.2 and 1.9

version 1.8.56.2, 2012/04/23 23:40:41 version 1.9, 2012/03/21 10:10:37
Line 44  int     rfc931_timeout = RFC931_TIMEOUT;
Line 44  int     rfc931_timeout = RFC931_TIMEOUT;
   
 static jmp_buf timebuf;  static jmp_buf timebuf;
   
 static FILE *fsocket __P((int, int, int));  static FILE *fsocket(int, int, int);
 static void timeout __P((int));  static void timeout(int);
   
 /* fsocket - open stdio stream on top of socket */  /* fsocket - open stdio stream on top of socket */
   
 static FILE *fsocket(domain, type, protocol)  static FILE *
 int     domain;  fsocket(int domain, int type, int protocol)
 int     type;  
 int     protocol;  
 {  {
     int     s;      int     s;
     FILE   *fp;      FILE   *fp;
Line 71  int     protocol;
Line 69  int     protocol;
   
 /* timeout - handle timeouts */  /* timeout - handle timeouts */
   
 static void timeout(sig)  static void
 int     sig;  timeout(int sig)
 {  {
     longjmp(timebuf, sig);      longjmp(timebuf, sig);
 }  }
   
 /* rfc931 - return remote user name, given socket structures */  /* rfc931 - return remote user name, given socket structures */
   
 void    rfc931(rmt_sin, our_sin, dest)  void
 struct sockaddr *rmt_sin;  rfc931(struct sockaddr *rmt_sin, struct sockaddr *our_sin, char *dest)
 struct sockaddr *our_sin;  
 char   *dest;  
 {  {
     unsigned rmt_port;      unsigned rmt_port;
     unsigned our_port;      unsigned our_port;
Line 93  char   *dest;
Line 89  char   *dest;
     char   *cp;      char   *cp;
     char   *result = unknown;      char   *result = unknown;
     FILE   *fp;      FILE   *fp;
     int salen;      volatile int salen;
     u_short *rmt_portp;      u_short * volatile rmt_portp;
     u_short *our_portp;      u_short * volatile our_portp;
   
     /* address family must be the same */      /* address family must be the same */
     if (rmt_sin->sa_family != our_sin->sa_family) {      if (rmt_sin->sa_family != our_sin->sa_family) {

Legend:
Removed from v.1.8.56.2  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>