libsmbconf:registry: rework smbconf_reg_parameter_forbidden(), renaming it.
authorMichael Adam <obnox@samba.org>
Sun, 22 Sep 2013 01:39:48 +0000 (03:39 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000 (07:44 +0200)
commit4a65969e11d3bc7da62afec82de9f6d51d5e6a08
treeb5175b3dae8c8d92e046a232af90953c098397b6
parent5426e57898b2b60b7def1af24050df10b1394c9e
libsmbconf:registry: rework smbconf_reg_parameter_forbidden(), renaming it.

The logic is inverted, the lp_parameter_is_invalid call of
smbconf_reg_valname_valid() is included, and the function
is renamed to smbconf_reg_parameter_is_valid().

Use the new function everywhere in smbconf registry backend.
And remove corresponding reverse function smbconf_reg_valname_valid().

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/smbconf/smbconf_reg.c