Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 2015 12:20:19 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Svatopluk Kraus <onwahe@gmail.com>, "Conrad E. Meyer" <cem@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r290475 - in head: share/man/man9 sys/kern sys/sys
Message-ID:  <563DDE73.6030307@selasky.org>
In-Reply-To: <CAFHCsPUagzwtFZvJ10bAeEH8y8Lkz0N1WL99fbBiBKOb=Mk-rQ@mail.gmail.com>
References:  <201511070143.tA71h13k038232@repo.freebsd.org> <CAFHCsPUagzwtFZvJ10bAeEH8y8Lkz0N1WL99fbBiBKOb=Mk-rQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/07/15 09:37, Svatopluk Kraus wrote:
> +#define        SYSCTL_NULL_U64_PTR ((unsigned *)NULL)

Hi Conrad,

All the NULL macros must have correct type according to the size-check 
asserts. Else they won't have any purpose:

#define	SYSCTL_NULL_U64_PTR ((uint64_t *)NULL)
#define	SYSCTL_NULL_S64_PTR ((int64_t *)NULL)

#define SYSCTL_NULL_U8_PTR ((uint8_t *)NULL)
#define SYSCTL_NULL_S8_PTR ((int8_t *)NULL)

And so one. Can you fix this?

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563DDE73.6030307>