]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix the build when compiling without JSON support
authorMartin Schwenke <martin@meltin.net>
Sat, 22 Sep 2018 22:47:28 +0000 (08:47 +1000)
committerRalph Boehme <slow@samba.org>
Mon, 24 Sep 2018 05:03:09 +0000 (07:03 +0200)
[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 <martin@meltin.net>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Sep 24 07:03:09 CEST 2018 on sn-devel-144

source3/utils/net_ads.c

index 77d9eec93749c3816ce2e332e9bfaf8351d62cfd..1f055507ad723950b47b035304cecac115997dc6 100644 (file)
@@ -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"));