]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
buildtools: Remove useless ‘keep_underscore’ parameter
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 12 Nov 2023 20:39:20 +0000 (09:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Dec 2023 01:08:37 +0000 (01:08 +0000)
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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wafsamba.py
nsswitch/wscript_build

index 347eedef29b38119347b972c4d2eb16d40679609..7206e5f17d94917298a63dbc838d969e5cf44ca7 100644 (file)
@@ -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,
index 4e62bb4c9461f0119c738ba05c83929dc9a1d00c..4c5f708328b67fcde9e2dec1089d59881a8e18b7 100644 (file)
@@ -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',