summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-15 07:45:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-15 07:45:51 +0000
commita27d434c4b4363762e7a0d5eeddd35e2b8dbb374 (patch)
treecf83b7931f7ba94d10ba73cd3d76da39b1f6ca2b /source3/rpc_parse/parse_misc.c
parentd8549b0360b86f151a8cd221838d005e083bfba8 (diff)
downloadsamba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.tar.gz
samba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.tar.bz2
samba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.zip
Fix signed/unsigned issues - mostly 'i' counters.
Fix an inconpatible poitner type that caused the IA64 not to build Andrew Bartlett (This used to be commit 37436b0aae108fceace3049d3868510e1ba592ac)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index df80c76ee5..b7b0e9346b 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++;
@@ -1128,7 +1128,7 @@ BOOL smb_io_unistr2_array(const char *desc, UNISTR2_ARRAY *array, prs_struct *ps
BOOL init_sid_array(SID_ARRAY *array,
uint32 count, DOM_SID *sids)
{
- int i;
+ unsigned int i;
array->count = count;
array->ref_id = count?1:0;
@@ -1155,7 +1155,7 @@ BOOL init_sid_array(SID_ARRAY *array,
********************************************************************/
BOOL smb_io_sid_array(const char *desc, SID_ARRAY *array, prs_struct *ps, int depth)
{
- int i;
+ unsigned int i;
prs_debug(ps, depth, desc, "smb_io_sid_array");
depth++;