summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-21 03:56:54 +0100
committerGünther Deschner <gd@samba.org>2008-03-21 04:16:21 +0100
commit1dc52e8fbf1d9e56ff7fdcd1c637e21e6b23e456 (patch)
tree20745e3d1509ebc92dd6dddbf62ddf1e7846250b
parent286a6282e2151a0cbe995bd7046c5054db9c2d7f (diff)
downloadsamba-1dc52e8fbf1d9e56ff7fdcd1c637e21e6b23e456.tar.gz
samba-1dc52e8fbf1d9e56ff7fdcd1c637e21e6b23e456.tar.bz2
samba-1dc52e8fbf1d9e56ff7fdcd1c637e21e6b23e456.zip
Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.
Guenther (This used to be commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)
-rw-r--r--source3/include/rpc_srvsvc.h14
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c15
2 files changed, 15 insertions, 14 deletions
diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h
index f4f456e82c..0f6fabe774 100644
--- a/source3/include/rpc_srvsvc.h
+++ b/source3/include/rpc_srvsvc.h
@@ -46,20 +46,6 @@
#define SRV_NET_FILE_QUERY_SECDESC 0x27
#define SRV_NET_FILE_SET_SECDESC 0x28
-#define MAX_SERVER_DISK_ENTRIES 15
-
-/***************************/
-
-/* oops - this is going to take up a *massive* amount of stack. */
-/* the UNISTR2s already have 1024 uint16 chars in them... */
-
-#define MAX_SESS_ENTRIES 32
-
-/***************************/
-
-/* oops - this is going to take up a *massive* amount of stack. */
-/* the UNISTR2s already have 1024 uint16 chars in them... */
-#define MAX_CONN_ENTRIES 32
/***************************/
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index c8f21b76bb..adbe3f684b 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -29,6 +29,21 @@ extern const struct generic_mapping file_generic_mapping;
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
+#define MAX_SERVER_DISK_ENTRIES 15
+
+/***************************/
+
+/* oops - this is going to take up a *massive* amount of stack. */
+/* the UNISTR2s already have 1024 uint16 chars in them... */
+
+#define MAX_SESS_ENTRIES 32
+
+/***************************/
+
+/* oops - this is going to take up a *massive* amount of stack. */
+/* the UNISTR2s already have 1024 uint16 chars in them... */
+#define MAX_CONN_ENTRIES 32
+
/* Use for enumerating connections, pipes, & files */
struct file_enum_count {