[PATCH] smbreadline: switch to new-style readline typedef
gustavo at zacarias.com.ar
Mon Mar 3 16:51:19 MST 2014
On 03/03/2014 05:57 PM, Jeremy Allison wrote:
> A question - rl_hook_func_t is defined here:
> as 'typedef int rl_hook_func_t (void);'
> However, callback is defined in the Samba code as :
> void (*callback)(void).
> Should we also update the callback() definitions ?
Incomplete docs :)
The callback is just a pointer to a function, used like this in line 456
Any return value is ignored and unassigned, so it's good as it is and
may cause compiler warnings if it's not void.
More information about the samba-technical