From: Martin Schwenke Date: Sat, 22 Sep 2018 22:47:28 +0000 (+1000) Subject: s3: Fix the build when compiling without JSON support X-Git-Tag: tdb-1.3.17~1510 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a5fbd86702c28b51eeac6c2b1bd1f3713fe10d;p=thirdparty%2Fsamba.git s3: Fix the build when compiling without JSON support [3762/3895] Compiling source3/utils/net_ads_gpo.c ../source3/utils/net_ads.c: In function ‘net_ads_cldap_netlogon_json’: ../source3/utils/net_ads.c:311:2: error: parameter name omitted (ADS_STRUCT *, const char *, ^ ../source3/utils/net_ads.c:311:2: error: parameter name omitted ../source3/utils/net_ads.c:312:16: error: parameter name omitted const struct NETLOGON_SAM_LOGON_RESPONSE_EX *) ^ ../source3/utils/net_ads.c: In function ‘net_ads_info_json’: ../source3/utils/net_ads.c:520:1: error: parameter name omitted static int net_ads_info_json(ADS_STRUCT *) ^ Signed-off-by: Martin Schwenke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Mon Sep 24 07:03:09 CEST 2018 on sn-devel-144 --- diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 77d9eec9374..1f055507ad7 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -308,8 +308,9 @@ failure: #else /* [HAVE_JANSSON] */ static int net_ads_cldap_netlogon_json - (ADS_STRUCT *, const char *, - const struct NETLOGON_SAM_LOGON_RESPONSE_EX *) + (ADS_STRUCT *ads, + const char *addr, + const struct NETLOGON_SAM_LOGON_RESPONSE_EX * reply) { d_fprintf(stderr, _("JSON support not available\n")); @@ -517,7 +518,7 @@ failure: #else /* [HAVE_JANSSON] */ -static int net_ads_info_json(ADS_STRUCT *) +static int net_ads_info_json(ADS_STRUCT *ads) { d_fprintf(stderr, _("JSON support not available\n"));