s4-param void function cannot return value
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Sep 2011 11:41:12 +0000 (21:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Sep 2011 14:38:30 +0000 (16:38 +0200)
This is even if the returned function is void, on Solaris.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Sep  8 16:38:30 CEST 2011 on sn-devel-104

source4/param/loadparm.c

index c29097f420587197182ba44c9287a5fc49a5f6c2..524fd26df3405d865398e2776151a738f6552f89 100644 (file)
@@ -3591,7 +3591,8 @@ void lpcfg_dump(struct loadparm_context *lp_ctx, FILE *f, bool show_defaults,
        int iService;
 
        if (lp_ctx->s3_fns) {
-               return lp_ctx->s3_fns->dump(f, show_defaults, maxtoprint);
+               lp_ctx->s3_fns->dump(f, show_defaults, maxtoprint);
+               return;
        }
 
        defaults_saved = !show_defaults;