forked from Imagelibrary/rtems
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:
@@ -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,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user