summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-17 23:04:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-17 23:04:03 +0000
commite88eab35bc03a2d108b27f2209ec4cfb395dcdba (patch)
tree8a0e5c5ca43634c8146982ad9eb63165c9ea07c3 /source3/rpc_parse/parse_misc.c
parent83a580f49a3a7f5aff0aab3946faee0892239251 (diff)
downloadsamba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.tar.gz
samba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.tar.bz2
samba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.zip
Merge from HEAD:
signed/unsigned (mostly i counters) a little bit of const. Andrew Bartlett (This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 43d26a691d..f0d4c67d9f 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -697,7 +697,7 @@ BOOL smb_io_buffer5(const char *desc, BUFFER5 *buf5, prs_struct *ps, int depth)
Inits a BUFFER2 structure.
********************************************************************/
-void init_buffer2(BUFFER2 *str, const uint8 *buf, int len)
+void init_buffer2(BUFFER2 *str, const uint8 *buf, size_t len)
{
ZERO_STRUCTP(str);
@@ -1050,7 +1050,7 @@ BOOL smb_io_unistr2(const char *desc, UNISTR2 *uni2, uint32 buffer, prs_struct *
BOOL init_unistr2_array(UNISTR2_ARRAY *array,
uint32 count, const char **strings)
{
- int i;
+ unsigned int i;
array->count = count;
array->ref_id = count?1:0;
@@ -1078,7 +1078,7 @@ BOOL init_unistr2_array(UNISTR2_ARRAY *array,
********************************************************************/
BOOL smb_io_unistr2_array(const char *desc, UNISTR2_ARRAY *array, prs_struct *ps, int depth)
{
- int i;
+ unsigned int i;
prs_debug(ps, depth, desc, "smb_io_unistr2_array");
depth++;