2004-12-02 Joel Sherrill <joel@OARcorp.com>

* libnetworking/kern/kern_sysctl.c, libnetworking/netinet/ip_mroute.c,
	libnetworking/sys/socketvar.h: Remove warnings.
This commit is contained in:
Joel Sherrill
2004-12-02 20:24:30 +00:00
parent dac1edba93
commit 78219ad15b
4 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2004-12-02 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/netinet/ip_mroute.c,
libnetworking/sys/socketvar.h: Remove warnings.
2004-12-02 Ralf Corsepius <ralf.corsepius@rtems.org> 2004-12-02 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/radix.c, libnetworking/net/radix.h, * libnetworking/net/radix.c, libnetworking/net/radix.h,

View File

@@ -392,7 +392,8 @@ sysctl_add_oid(struct sysctl_ctx_list *clist, struct sysctl_oid_list *parent,
oidp->oid_kind = CTLFLAG_DYN | kind; oidp->oid_kind = CTLFLAG_DYN | kind;
if ((kind & CTLTYPE) == CTLTYPE_NODE) { if ((kind & CTLTYPE) == CTLTYPE_NODE) {
/* Allocate space for children */ /* Allocate space for children */
SYSCTL_CHILDREN(oidp) = malloc(sizeof(struct sysctl_oid_list), /* Later accessed by macro SYSCTL_CHILDREN(oidp) */
oidp->oid_arg1 = malloc(sizeof(struct sysctl_oid_list),
M_SYSCTLOID, M_WAITOK); M_SYSCTLOID, M_WAITOK);
SLIST_INIT(SYSCTL_CHILDREN(oidp)); SLIST_INIT(SYSCTL_CHILDREN(oidp));
} else { } else {

View File

@@ -17,6 +17,7 @@
#include <sys/param.h> #include <sys/param.h>
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/systm.h> #include <sys/systm.h>
#include <sys/sysctl.h>
#include <sys/mbuf.h> #include <sys/mbuf.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/socketvar.h> #include <sys/socketvar.h>

View File

@@ -208,6 +208,7 @@ struct filedesc;
struct mbuf; struct mbuf;
struct sockaddr; struct sockaddr;
struct stat; struct stat;
struct file;
/* /*
* File operations on sockets. * File operations on sockets.