Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern

On Tue, Jan 29, 2013 at 11:00:31PM +0000, Lars Heidieker wrote:
> Module Name:  src
> Committed By: para
> Date:         Tue Jan 29 23:00:31 UTC 2013
> Modified Files:
>       src/sys/kern: kern_sysctl.c
> Log Message:
> fix the sysctl_setup_func typedef

-typedef void (*sysctl_setup_func)(struct sysctllog **);
+typedef void sysctl_setup_func(struct sysctllog **);

IIRC you are only supposed to be able to typedef pointers to functions.

The extra level of indirection (that caused the horrid casting)
is elsewhere.
(I wasn't at all sure the previous 'fix' was right.)


David Laight:

Home | Main Index | Thread Index | Old Index