[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-technical
Subject:    [PATCH] lib/param: move function declaration to after forward declaration of struct loadparm_context
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2015-07-30 1:34:33
Message-ID: 1438220073-23130-1-git-send-email-bradh () frogmouth ! net
[Download RAW message or body]

Avoids a warning about the structure being declared inside the parameter list.

Signed-off-by: Brad Hards <bradh@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic