s3-rpc_server: fix some buildwarnings in non-developer mode.
authorGünther Deschner <gd@samba.org>
Fri, 11 Feb 2011 15:04:28 +0000 (16:04 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 11 Feb 2011 15:06:06 +0000 (16:06 +0100)
Guenther

source3/rpc_server/srv_rpc_register.c

index 634adfdd78280f600ee4b96dc9f2169d4e33e923..9d213ec486ea02a2f18c74f96e769fb8d3922b81 100644 (file)
@@ -255,7 +255,7 @@ static bool initshutdown_shutdown_cb(void *ptr)
 {
        return NT_STATUS_IS_OK(_rpc_ep_unregister(&ndr_table_initshutdown));
 }
-
+#ifdef DEVELOPER
 static bool rpcecho_init_cb(void *ptr) {
        return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_rpcecho, "rpcecho"));
 }
@@ -264,7 +264,7 @@ static bool rpcecho_shutdown_cb(void *ptr)
 {
        return NT_STATUS_IS_OK(_rpc_ep_unregister(&ndr_table_rpcecho));
 }
-
+#endif
 static bool netdfs_init_cb(void *ptr)
 {
        return NT_STATUS_IS_OK(_rpc_ep_register(&ndr_table_netdfs, "netdfs"));
@@ -304,7 +304,9 @@ bool srv_rpc_register(struct messaging_context *msg_ctx) {
        struct rpc_srv_callbacks eventlog_cb;
        struct rpc_srv_callbacks initshutdown_cb;
        struct rpc_srv_callbacks netdfs_cb;
+#ifdef DEVELOPER
        struct rpc_srv_callbacks rpcecho_cb;
+#endif
        struct rpc_srv_callbacks dssetup_cb;
        struct rpc_srv_callbacks wkssvc_cb;