mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Remove sonewconn() macro kludge, introduced in 4.3-Reno to catch argument
mismatches. Prototypes do a much better job these days. Noticed by: bde
This commit is contained in:
parent
407529c04f
commit
548af2789b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27531
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)uipc_socket2.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: uipc_socket2.c,v 1.24 1997/04/27 20:00:44 wollman Exp $
|
||||
* $Id: uipc_socket2.c,v 1.25 1997/05/24 17:23:10 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -193,12 +193,9 @@ sodropablereq(head)
|
||||
* then we allocate a new structure, propoerly linked into the
|
||||
* data structure of the original socket, and return this.
|
||||
* Connstatus may be 0, or SO_ISCONFIRMING, or SO_ISCONNECTED.
|
||||
*
|
||||
* Currently, sonewconn() is defined as sonewconn1() in socketvar.h
|
||||
* to catch calls that are missing the (new) second parameter.
|
||||
*/
|
||||
struct socket *
|
||||
sonewconn1(head, connstatus)
|
||||
sonewconn(head, connstatus)
|
||||
register struct socket *head;
|
||||
int connstatus;
|
||||
{
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)uipc_socket2.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: uipc_socket2.c,v 1.24 1997/04/27 20:00:44 wollman Exp $
|
||||
* $Id: uipc_socket2.c,v 1.25 1997/05/24 17:23:10 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -193,12 +193,9 @@ sodropablereq(head)
|
||||
* then we allocate a new structure, propoerly linked into the
|
||||
* data structure of the original socket, and return this.
|
||||
* Connstatus may be 0, or SO_ISCONFIRMING, or SO_ISCONNECTED.
|
||||
*
|
||||
* Currently, sonewconn() is defined as sonewconn1() in socketvar.h
|
||||
* to catch calls that are missing the (new) second parameter.
|
||||
*/
|
||||
struct socket *
|
||||
sonewconn1(head, connstatus)
|
||||
sonewconn(head, connstatus)
|
||||
register struct socket *head;
|
||||
int connstatus;
|
||||
{
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)socketvar.h 8.3 (Berkeley) 2/19/95
|
||||
* $Id: socketvar.h,v 1.18 1997/02/22 09:45:56 peter Exp $
|
||||
* $Id: socketvar.h,v 1.19 1997/04/27 20:01:28 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SOCKETVAR_H_
|
||||
@ -200,9 +200,6 @@ struct socket {
|
||||
#ifdef KERNEL
|
||||
extern u_long sb_max;
|
||||
|
||||
/* to catch callers missing new second argument to sonewconn: */
|
||||
#define sonewconn(head, connstatus) sonewconn1((head), (connstatus))
|
||||
|
||||
struct filedesc;
|
||||
struct mbuf;
|
||||
struct sockaddr;
|
||||
@ -262,7 +259,7 @@ int solisten __P((struct socket *so, int backlog, struct proc *p));
|
||||
struct socket *
|
||||
sodropablereq __P((struct socket *head));
|
||||
struct socket *
|
||||
sonewconn1 __P((struct socket *head, int connstatus));
|
||||
sonewconn __P((struct socket *head, int connstatus));
|
||||
int soreceive __P((struct socket *so, struct mbuf **paddr, struct uio *uio,
|
||||
struct mbuf **mp0, struct mbuf **controlp, int *flagsp));
|
||||
int soreserve __P((struct socket *so, u_long sndcc, u_long rcvcc));
|
||||
|
Loading…
Reference in New Issue
Block a user