diff options
-rw-r--r-- | lib/tdr/tdr.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/tdr/tdr.c b/lib/tdr/tdr.c index 616cc987a9..95ef98246e 100644 --- a/lib/tdr/tdr.c +++ b/lib/tdr/tdr.c @@ -1,21 +1,21 @@ -/* +/* Unix SMB/CIFS implementation. TDR (Trivial Data Representation) helper functions Based loosely on ndr.c by Andrew Tridgell. Copyright (C) Jelmer Vernooij 2005 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -162,7 +162,7 @@ NTSTATUS tdr_pull_charset(struct tdr_pull *tdr, TALLOC_CTX *ctx, const char **v, } TDR_PULL_NEED_BYTES(tdr, el_size*length); - + if (!convert_string_talloc(ctx, chset, CH_UNIX, tdr->data.data+tdr->offset, el_size*length, discard_const_p(void *, v), &ret)) { return NT_STATUS_INVALID_PARAMETER; } @@ -193,9 +193,9 @@ NTSTATUS tdr_push_charset(struct tdr_push *tdr, const char **v, uint32_t length, if (size < required) { memset(tdr->data.data+tdr->data.length+size, 0, required-size); } - + tdr->data.length += required; - + return NT_STATUS_OK; } @@ -297,7 +297,7 @@ NTSTATUS tdr_print_DATA_BLOB(struct tdr_print *tdr, const char *name, DATA_BLOB #define TDR_ALIGN(l,n) (((l) & ((n)-1)) == 0?0:((n)-((l)&((n)-1)))) /* - push a DATA_BLOB onto the wire. + push a DATA_BLOB onto the wire. */ NTSTATUS tdr_push_DATA_BLOB(struct tdr_push *tdr, DATA_BLOB *blob) { @@ -310,13 +310,13 @@ NTSTATUS tdr_push_DATA_BLOB(struct tdr_push *tdr, DATA_BLOB *blob) } TDR_PUSH_NEED_BYTES(tdr, blob->length); - + memcpy(tdr->data.data+tdr->data.length, blob->data, blob->length); return NT_STATUS_OK; } /* - pull a DATA_BLOB from the wire. + pull a DATA_BLOB from the wire. */ NTSTATUS tdr_pull_DATA_BLOB(struct tdr_pull *tdr, TALLOC_CTX *ctx, DATA_BLOB *blob) { |