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. There was no cast here

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 to give a compiler er

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> incompatible pointer type w

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. ___ s

svn commit: r296868 - head/sys/sys

2016-03-14 Thread Gleb Smirnoff
Author: glebius Date: Mon Mar 14 18:07:59 2016 New Revision: 296868 URL: https://svnweb.freebsd.org/changeset/base/296868 Log: Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro. Modified: head/sys/sys/sysctl.h Modified: head/sys/sys/sysctl.h