summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-15 20:46:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:02 -0500
commit76f3e5a90f768f0d9f88512e47edb7aac321985c (patch)
treefb9d4e5db70051441cfb4b3cc271bb2e058ae794 /source3/rpc_parse
parentcacc3e18885f55a49a066d5e3eb602473ea76898 (diff)
downloadsamba-76f3e5a90f768f0d9f88512e47edb7aac321985c.tar.gz
samba-76f3e5a90f768f0d9f88512e47edb7aac321985c.tar.bz2
samba-76f3e5a90f768f0d9f88512e47edb7aac321985c.zip
r5808: removing unneeded structure field from RPC_BUFFER
(This used to be commit 9b0bfd7e6fd1acc85ec53d2fa32d61cd34aa2345)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_buffer.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/rpc_parse/parse_buffer.c b/source3/rpc_parse/parse_buffer.c
index d3584c3954..41064572d9 100644
--- a/source3/rpc_parse/parse_buffer.c
+++ b/source3/rpc_parse/parse_buffer.c
@@ -33,9 +33,6 @@
**********************************************************************/
void rpcbuf_init(RPC_BUFFER *buffer, uint32 size, TALLOC_CTX *ctx)
{
-#if 0
- buffer->ptr = (size != 0);
-#endif
buffer->size = size;
buffer->string_at_end = size;
prs_init(&buffer->prs, size, ctx, MARSHALL);
@@ -56,19 +53,6 @@ BOOL prs_rpcbuffer(const char *desc, prs_struct *ps, int depth, RPC_BUFFER *buff
buffer->size=0;
buffer->string_at_end=0;
-#if 0
- if (buffer->ptr==0) {
- /*
- * JRA. I'm not sure if the data in here is in big-endian format if
- * the client is big-endian. Leave as default (little endian) for now.
- */
-
- if (!prs_init(&buffer->prs, 0, prs_get_mem_context(ps), UNMARSHALL))
- return False;
- return True;
- }
-#endif
-
if (!prs_uint32("size", ps, depth, &buffer->size))
return False;
@@ -96,15 +80,6 @@ BOOL prs_rpcbuffer(const char *desc, prs_struct *ps, int depth, RPC_BUFFER *buff
else {
BOOL ret = False;
-#if 0
- /* writing */
- if (buffer->ptr==0) {
- /* We have finished with the data in buffer->prs - free it. */
- prs_mem_free(&buffer->prs);
- return True;
- }
-#endif
-
if (!prs_uint32("size", ps, depth, &buffer->size))
goto out;