[PATCH] lib/param: move function declaration to after forward declaration of struct loadparm_context
Brad Hards
bradh at frogmouth.net
Thu Jul 30 01:34:33 UTC 2015
Avoids a warning about the structure being declared inside the parameter list.
Signed-off-by: Brad Hards <bradh at frogmouth.net>
---
lib/param/param.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/param/param.h b/lib/param/param.h
index af321e1..25be9dd 100644
--- a/lib/param/param.h
+++ b/lib/param/param.h
@@ -34,26 +34,26 @@ struct param_section {
struct parmlist *parameters;
};
struct param_context;
struct smbsrv_connection;
-typedef bool (*lpcfg_defaults_hook) (struct loadparm_context *);
-
#define Auto (2)
#include "libds/common/roles.h"
struct loadparm_context;
struct loadparm_service;
struct smbcli_options;
struct smbcli_session_options;
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"
#endif
const char **lpcfg_interfaces(struct loadparm_context *);
--
1.9.1
More information about the samba-technical
mailing list