From: Joseph Sutton Date: Sun, 12 Nov 2023 20:39:20 +0000 (+1300) Subject: buildtools: Remove useless ‘keep_underscore’ parameter X-Git-Tag: talloc-2.4.2~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623645963eef05f6ae3141392a6c828f85679ba6;p=thirdparty%2Fsamba.git buildtools: Remove useless ‘keep_underscore’ parameter SAMBA_LIBARY()’s ‘keep_underscore’ parameter has an effect only if None is passed in for ‘bundled_name’. However, SAMBA_PLUGIN() always passes in a string for ‘bundled_name’. Therefore ‘keep_underscore’ will never have any effect — remove it. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 347eedef29b..7206e5f17d9 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -654,7 +654,6 @@ def SAMBA_PLUGIN(bld, pluginname, source, vars=None, subdir=None, realname=None, - keep_underscore=False, autoproto=None, autoproto_extra_source='', install_path=None, @@ -686,7 +685,6 @@ def SAMBA_PLUGIN(bld, pluginname, source, cflags=cflags, ldflags=ldflags, realname=realname, - keep_underscore=keep_underscore, autoproto=autoproto, autoproto_extra_source=autoproto_extra_source, local_include=local_include, diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build index 4e62bb4c946..4c5f708328b 100644 --- a/nsswitch/wscript_build +++ b/nsswitch/wscript_build @@ -36,7 +36,6 @@ bld.SAMBA_PLUGIN('nss_wrapper_winbind', if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)): bld.SAMBA_PLUGIN('nss_winbind', - keep_underscore=True, cflags='-D_PUBLIC_ON_LINUX_=_PUBLIC_', source='winbind_nss_linux.c', deps='wbclient', @@ -45,7 +44,6 @@ if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)): vnum='2') bld.SAMBA3_PLUGIN('nss_wins', - keep_underscore=True, cflags='-D_PUBLIC_ON_LINUX_=_PUBLIC_', source='wins.c', deps='wbclient replace',