From samba-technical Thu Jul 30 01:34:33 2015 From: Brad Hards Date: Thu, 30 Jul 2015 01:34:33 +0000 To: samba-technical Subject: [PATCH] lib/param: move function declaration to after forward declaration of struct loadparm_context Message-Id: <1438220073-23130-1-git-send-email-bradh () frogmouth ! net> X-MARC-Message: https://marc.info/?l=samba-technical&m=143822045100750 Avoids a warning about the structure being declared inside the parameter list. Signed-off-by: Brad Hards --- 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