svn commit: samba r5808 - in branches/SAMBA_3_0/source: include rpc_parse

jerry at samba.org jerry at samba.org
Tue Mar 15 20:46:26 GMT 2005


Author: jerry
Date: 2005-03-15 20:46:26 +0000 (Tue, 15 Mar 2005)
New Revision: 5808

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5808

Log:
removing unneeded structure field from RPC_BUFFER
Modified:
   branches/SAMBA_3_0/source/include/rpc_buffer.h
   branches/SAMBA_3_0/source/rpc_parse/parse_buffer.c


Changeset:
Modified: branches/SAMBA_3_0/source/include/rpc_buffer.h
===================================================================
--- branches/SAMBA_3_0/source/include/rpc_buffer.h	2005-03-15 20:27:17 UTC (rev 5807)
+++ branches/SAMBA_3_0/source/include/rpc_buffer.h	2005-03-15 20:46:26 UTC (rev 5808)
@@ -25,9 +25,6 @@
 #define _RPC_BUFFER_H
 
 typedef struct {
-#if 0
-	uint32 ptr;
-#endif
 	uint32 size;
 	prs_struct prs;
 	uint32 struct_start;

Modified: branches/SAMBA_3_0/source/rpc_parse/parse_buffer.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_buffer.c	2005-03-15 20:27:17 UTC (rev 5807)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_buffer.c	2005-03-15 20:46:26 UTC (rev 5808)
@@ -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 @@
 		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 @@
 	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;
 



More information about the samba-cvs mailing list