Re: svn commit: r296868 - head/sys/sys

2016-03-15 Thread Bruce Evans
On Tue, 15 Mar 2016, Hans Petter Selasky wrote: On 03/14/16 21:33, Gleb Smirnoff wrote: On Mon, Mar 14, 2016 at 02:31:37PM -0400, Ryan Stone wrote: R> On Mon, Mar 14, 2016 at 2:07 PM, Gleb Smirnoff wrote: R> R> > Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro.

Re: svn commit: r296868 - head/sys/sys

2016-03-15 Thread Hans Petter Selasky
On 03/14/16 21:33, Gleb Smirnoff wrote: On Mon, Mar 14, 2016 at 02:31:37PM -0400, Ryan Stone wrote: R> On Mon, Mar 14, 2016 at 2:07 PM, Gleb Smirnoff wrote: R> R> > Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro. R> > R> R> Is it useless? I believe that the point is

Re: svn commit: r296868 - head/sys/sys

2016-03-14 Thread Gleb Smirnoff
On Mon, Mar 14, 2016 at 02:31:37PM -0400, Ryan Stone wrote: R> On Mon, Mar 14, 2016 at 2:07 PM, Gleb Smirnoff wrote: R> R> > Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro. R> > R> R> Is it useless? I believe that the point is to give a compiler error if an R>

Re: svn commit: r296868 - head/sys/sys

2016-03-14 Thread Ryan Stone
On Mon, Mar 14, 2016 at 2:07 PM, Gleb Smirnoff wrote: > Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro. > Is it useless? I believe that the point is to give a compiler error if an incompatible pointer type was passed as the ptr parameter.