summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_srv.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_srv.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_srv.c')
-rw-r--r--source3/rpc_parse/parse_srv.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index bfa1a13be9..27763aa224 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -1665,8 +1665,8 @@ static BOOL srv_io_srv_sess_info_0(const char *desc, SRV_SESS_INFO_0 *ss0, prs_s
return False;
if (ss0->ptr_sess_info != 0) {
- int i;
- int num_entries = ss0->num_entries_read;
+ uint32 i;
+ uint32 num_entries = ss0->num_entries_read;
if (num_entries > MAX_SESS_ENTRIES) {
num_entries = MAX_SESS_ENTRIES; /* report this! */
@@ -1802,8 +1802,8 @@ static BOOL srv_io_srv_sess_info_1(const char *desc, SRV_SESS_INFO_1 *ss1, prs_s
return False;
if (ss1->ptr_sess_info != 0) {
- int i;
- int num_entries = ss1->num_entries_read;
+ uint32 i;
+ uint32 num_entries = ss1->num_entries_read;
if (num_entries > MAX_SESS_ENTRIES) {
num_entries = MAX_SESS_ENTRIES; /* report this! */
@@ -1944,7 +1944,7 @@ BOOL srv_io_q_net_sess_enum(const char *desc, SRV_Q_NET_SESS_ENUM *q_n, prs_stru
if(!prs_uint32("sess_level", ps, depth, &q_n->sess_level))
return False;
- if (q_n->sess_level != -1) {
+ if (q_n->sess_level != (uint32)-1) {
if(!srv_io_srv_sess_ctr("sess_ctr", &q_n->ctr, ps, depth))
return False;
}
@@ -1976,7 +1976,7 @@ BOOL srv_io_r_net_sess_enum(const char *desc, SRV_R_NET_SESS_ENUM *r_n, prs_stru
if(!prs_uint32("sess_level", ps, depth, &r_n->sess_level))
return False;
- if (r_n->sess_level != -1) {
+ if (r_n->sess_level != (uint32)-1) {
if(!srv_io_srv_sess_ctr("sess_ctr", &r_n->ctr, ps, depth))
return False;
}
@@ -2309,7 +2309,7 @@ BOOL srv_io_q_net_conn_enum(const char *desc, SRV_Q_NET_CONN_ENUM *q_n, prs_stru
if(!prs_uint32("conn_level", ps, depth, &q_n->conn_level))
return False;
- if (q_n->conn_level != -1) {
+ if (q_n->conn_level != (uint32)-1) {
if(!srv_io_srv_conn_ctr("conn_ctr", &q_n->ctr, ps, depth))
return False;
}
@@ -2341,7 +2341,7 @@ BOOL srv_io_r_net_conn_enum(const char *desc, SRV_R_NET_CONN_ENUM *r_n, prs_str
if(!prs_uint32("conn_level", ps, depth, &r_n->conn_level))
return False;
- if (r_n->conn_level != -1) {
+ if (r_n->conn_level != (uint32)-1) {
if(!srv_io_srv_conn_ctr("conn_ctr", &r_n->ctr, ps, depth))
return False;
}
@@ -2573,7 +2573,7 @@ BOOL srv_io_q_net_file_enum(const char *desc, SRV_Q_NET_FILE_ENUM *q_n, prs_stru
if(!prs_uint32("file_level", ps, depth, &q_n->file_level))
return False;
- if (q_n->file_level != -1) {
+ if (q_n->file_level != (uint32)-1) {
if(!srv_io_srv_file_ctr("file_ctr", &q_n->ctr, ps, depth))
return False;
}
@@ -3271,7 +3271,7 @@ BOOL srv_io_q_net_disk_enum(const char *desc, SRV_Q_NET_DISK_ENUM *q_n, prs_stru
BOOL srv_io_r_net_disk_enum(const char *desc, SRV_R_NET_DISK_ENUM *r_n, prs_struct *ps, int depth)
{
- int i;
+ unsigned int i;
uint32 entries_read, entries_read2, entries_read3;
if (r_n == NULL)