Mercurial > ecos
changeset 2063:453dff0f4c80
* src/sys/kern/kern_sysctl.c: Silent compiler warning on lvalue
assignment
| author | asl |
|---|---|
| date | Sat, 03 Sep 2005 13:03:07 +0000 |
| parents | 4f05a86c20a3 |
| children | ef1d669d4888 |
| files | packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/sys/kern/kern_sysctl.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2005-09-02 Sebastien Couret <sebastien.couret@elios-informatique.fr> + + * src/sys/kern/kern_sysctl.c: Silent compiler warning on lvalue + assignment + 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch> * src/sys/netinet/ip_output.c (ip_output): initialize len to 0.
--- a/packages/net/bsd_tcpip/current/src/sys/kern/kern_sysctl.c +++ b/packages/net/bsd_tcpip/current/src/sys/kern/kern_sysctl.c @@ -379,7 +379,7 @@ sysctl_add_oid(struct sysctl_ctx_list *c oidp->oid_kind = CTLFLAG_DYN | kind; if ((kind & CTLTYPE) == CTLTYPE_NODE) { /* Allocate space for children */ - SYSCTL_CHILDREN(oidp) = malloc(sizeof(struct sysctl_oid_list), + oidp->oid_arg1 = (struct sysctl_oid_list *) malloc(sizeof(struct sysctl_oid_list), M_SYSCTLOID, M_WAITOK); SLIST_INIT(SYSCTL_CHILDREN(oidp)); } else {
