summaryrefslogtreecommitdiff
path: root/lib/tdr
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-10-26 06:55:04 -0800
committerJelmer Vernooij <jelmer@samba.org>2012-12-15 16:04:26 +0100
commitd4c3f54bbf6053783a221da84b5dbf249cdf05e7 (patch)
tree4c4c3f0c67dfe4f2bf09a3018b5381b181ca60d7 /lib/tdr
parent229d934d2fb653e02b38d242bf01f199434cd1f3 (diff)
downloadsamba-d4c3f54bbf6053783a221da84b5dbf249cdf05e7.tar.gz
tdr: Strip trailing whitespace.
Diffstat (limited to 'lib/tdr')
-rw-r--r--lib/tdr/tdr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/tdr/tdr.c b/lib/tdr/tdr.c
index 616cc987a93..95ef98246e3 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)
{