use c99 initializers
This commit is contained in:
parent
3088ae53a7
commit
842f306745
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uipc_mbuf.c,v 1.112 2006/08/08 15:53:40 pavel Exp $ */
|
||||
/* $NetBSD: uipc_mbuf.c,v 1.113 2006/09/03 21:12:14 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
@ -69,7 +69,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.112 2006/08/08 15:53:40 pavel Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.113 2006/09/03 21:12:14 christos Exp $");
|
||||
|
||||
#include "opt_mbuftrace.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -111,7 +111,8 @@ static void *mclpool_alloc(struct pool *, int);
|
||||
static void mclpool_release(struct pool *, void *);
|
||||
|
||||
static struct pool_allocator mclpool_allocator = {
|
||||
mclpool_alloc, mclpool_release, 0,
|
||||
.pa_alloc = mclpool_alloc,
|
||||
.pa_free = mclpool_release,
|
||||
};
|
||||
|
||||
static struct mbuf *m_copym0(struct mbuf *, int, int, int, int);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uipc_proto.c,v 1.18 2005/12/11 12:24:30 christos Exp $ */
|
||||
/* $NetBSD: uipc_proto.c,v 1.19 2006/09/03 21:14:12 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_proto.c,v 1.18 2005/12/11 12:24:30 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_proto.c,v 1.19 2006/09/03 21:14:12 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
@ -69,6 +69,11 @@ const struct protosw unixsw[] = {
|
||||
}
|
||||
};
|
||||
|
||||
struct domain unixdomain =
|
||||
{ AF_LOCAL, "unix", 0, unp_externalize, unp_dispose,
|
||||
unixsw, &unixsw[sizeof(unixsw)/sizeof(unixsw[0])] };
|
||||
struct domain unixdomain = {
|
||||
.dom_family = AF_LOCAL,
|
||||
.dom_name = "unix",
|
||||
.dom_externalize = unp_externalize,
|
||||
.dom_dispose = unp_dispose,
|
||||
.dom_protosw = unixsw,
|
||||
.dom_protoswNPROTOSW = &unixsw[sizeof(unixsw)/sizeof(unixsw[0])],
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uipc_usrreq.c,v 1.92 2006/07/23 22:06:12 ad Exp $ */
|
||||
/* $NetBSD: uipc_usrreq.c,v 1.93 2006/09/03 21:15:29 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000, 2004 The NetBSD Foundation, Inc.
|
||||
@ -103,7 +103,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.92 2006/07/23 22:06:12 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.93 2006/09/03 21:15:29 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -130,7 +130,10 @@ __KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.92 2006/07/23 22:06:12 ad Exp $");
|
||||
* rethink name space problems
|
||||
* need a proper out-of-band
|
||||
*/
|
||||
const struct sockaddr_un sun_noname = { sizeof(sun_noname), AF_LOCAL };
|
||||
const struct sockaddr_un sun_noname = {
|
||||
.sun_len = sizeof(sun_noname),
|
||||
.sun_family = AF_LOCAL,
|
||||
};
|
||||
ino_t unp_ino; /* prototype for fake inode numbers */
|
||||
|
||||
struct mbuf *unp_addsockcred(struct lwp *, struct mbuf *);
|
||||
|
Loading…
Reference in New Issue
Block a user