Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libwrap/rfc931.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libwrap/rfc931.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.8.56.1 retrieving revision 1.8.56.2 diff -u -p -r1.8.56.1 -r1.8.56.2 --- src/lib/libwrap/rfc931.c 2012/04/23 16:48:56 1.8.56.1 +++ src/lib/libwrap/rfc931.c 2012/04/23 23:40:41 1.8.56.2 @@ -1,4 +1,4 @@ -/* $NetBSD: rfc931.c,v 1.8.56.1 2012/04/23 16:48:56 riz Exp $ */ +/* $NetBSD: rfc931.c,v 1.8.56.2 2012/04/23 23:40:41 riz Exp $ */ /* * rfc931() speaks a common subset of the RFC 931, AUTH, TAP, IDENT and RFC @@ -16,7 +16,7 @@ #if 0 static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34"; #else -__RCSID("$NetBSD: rfc931.c,v 1.8.56.1 2012/04/23 16:48:56 riz Exp $"); +__RCSID("$NetBSD: rfc931.c,v 1.8.56.2 2012/04/23 23:40:41 riz Exp $"); #endif #endif @@ -44,13 +44,15 @@ int rfc931_timeout = RFC931_TIMEOUT; static jmp_buf timebuf; -static FILE *fsocket(int, int, int); -static void timeout(int); +static FILE *fsocket __P((int, int, int)); +static void timeout __P((int)); /* fsocket - open stdio stream on top of socket */ -static FILE * -fsocket(int domain, int type, int protocol) +static FILE *fsocket(domain, type, protocol) +int domain; +int type; +int protocol; { int s; FILE *fp; @@ -69,16 +71,18 @@ fsocket(int domain, int type, int protoc /* timeout - handle timeouts */ -static void -timeout(int sig) +static void timeout(sig) +int sig; { longjmp(timebuf, sig); } /* rfc931 - return remote user name, given socket structures */ -void -rfc931(struct sockaddr *rmt_sin, struct sockaddr *our_sin, char *dest) +void rfc931(rmt_sin, our_sin, dest) +struct sockaddr *rmt_sin; +struct sockaddr *our_sin; +char *dest; { unsigned rmt_port; unsigned our_port; @@ -89,9 +93,9 @@ rfc931(struct sockaddr *rmt_sin, struct char *cp; char *result = unknown; FILE *fp; - volatile int salen; - u_short * volatile rmt_portp; - u_short * volatile our_portp; + int salen; + u_short *rmt_portp; + u_short *our_portp; /* address family must be the same */ if (rmt_sin->sa_family != our_sin->sa_family) {