diff options
author | Günther Deschner <gd@samba.org> | 2008-11-11 12:49:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-19 23:25:33 +0100 |
commit | f9d691d9d808ec2f91f3f469fe2201b0909a8552 (patch) | |
tree | 0dc1042629ae2a62c72fd40c402b612989a7008a /source3/rpc_parse/parse_prs.c | |
parent | 12fdb5eb4628db08a665791fb76d15e9f5894478 (diff) | |
download | samba-f9d691d9d808ec2f91f3f469fe2201b0909a8552.tar.gz samba-f9d691d9d808ec2f91f3f469fe2201b0909a8552.tar.bz2 samba-f9d691d9d808ec2f91f3f469fe2201b0909a8552.zip |
s3-ntsvcs: remove old hand-marshalling for ntsvcs getdevregprop.
Guenther
Diffstat (limited to 'source3/rpc_parse/parse_prs.c')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index a0d3ed7397..acc0cc88ef 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -1056,39 +1056,6 @@ bool prs_buffer5(bool charmode, const char *name, prs_struct *ps, int depth, BUF } /****************************************************************** - Stream a "not" unicode string, length/buffer specified separately, - in byte chars. String is in little-endian format. - ********************************************************************/ - -bool prs_regval_buffer(bool charmode, const char *name, prs_struct *ps, int depth, REGVAL_BUFFER *buf) -{ - char *p; - char *q = prs_mem_get(ps, buf->buf_len); - if (q == NULL) - return False; - - if (UNMARSHALLING(ps)) { - if (buf->buf_len > buf->buf_max_len) { - return False; - } - if ( buf->buf_max_len ) { - buf->buffer = PRS_ALLOC_MEM(ps, uint16, buf->buf_max_len); - if ( buf->buffer == NULL ) - return False; - } else { - buf->buffer = NULL; - } - } - - p = (char *)buf->buffer; - - dbg_rw_punival(charmode, name, depth, ps, q, p, buf->buf_len/2); - ps->data_offset += buf->buf_len; - - return True; -} - -/****************************************************************** Stream a string, length/buffer specified separately, in uint8 chars. ********************************************************************/ |