lib/param: move function typedef to after forward declaration of struct loadparm_context
authorBrad Hards <bradh@frogmouth.net>
Thu, 30 Jul 2015 01:34:33 +0000 (11:34 +1000)
committerMichael Adam <obnox@samba.org>
Thu, 30 Jul 2015 17:25:12 +0000 (19:25 +0200)
Avoids a warning about the structure being declared inside the parameter list.

Signed-off-by: Brad Hards <bradh@frogmouth.net>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Jul 30 19:25:12 CEST 2015 on sn-devel-104

lib/param/param.h

index af321e1b5a8b5c4a4c604037f822f74543612b1f..25be9dd0e5bf84465facaa9c7719dc3939d3f35b 100644 (file)
@@ -37,8 +37,6 @@ struct param_section {
 struct param_context;
 struct smbsrv_connection;
 
-typedef bool (*lpcfg_defaults_hook) (struct loadparm_context *);
-
 #define Auto (2)
 
 #include "libds/common/roles.h"
@@ -51,6 +49,8 @@ struct gensec_settings;
 struct bitmap;
 struct file_lists;
 
+typedef bool (*lpcfg_defaults_hook) (struct loadparm_context *);
+
 #ifdef CONFIG_H_IS_FROM_SAMBA
 #include "lib/param/param_proto.h"
 #include "lib/param/param_functions.h"