summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-14 22:28:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:54 -0500
commitcd15a223cc3a39fc83fb91489210382126146be4 (patch)
tree56260d362f13f63b39a898f65b03401863eb2f0d
parent79cd3ada824c99cb4a2d62c1d41cd58142548bc6 (diff)
downloadsamba-cd15a223cc3a39fc83fb91489210382126146be4.tar.gz
samba-cd15a223cc3a39fc83fb91489210382126146be4.tar.bz2
samba-cd15a223cc3a39fc83fb91489210382126146be4.zip
r20784: Add ref pointer
(This used to be commit 2ba225ee12180d40a957e4e9a824a544c803a265)
-rw-r--r--source4/librpc/idl/mgmt.idl4
-rw-r--r--source4/torture/rpc/mgmt.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/librpc/idl/mgmt.idl b/source4/librpc/idl/mgmt.idl
index 03840b48a5..2f6467af1d 100644
--- a/source4/librpc/idl/mgmt.idl
+++ b/source4/librpc/idl/mgmt.idl
@@ -48,14 +48,14 @@ interface mgmt
WERROR mgmt_inq_stats (
[in] uint32 max_count,
[in] uint32 unknown,
- [out] mgmt_statistics statistics
+ [out,ref] mgmt_statistics *statistics
);
/***********************/
/* Function 0x02 */
boolean32 mgmt_is_server_listening (
- [out] error_status_t status
+ [out,ref] error_status_t *status
);
diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c
index 0da7fcb8d3..08804ec557 100644
--- a/source4/torture/rpc/mgmt.c
+++ b/source4/torture/rpc/mgmt.c
@@ -80,16 +80,16 @@ static BOOL test_inq_stats(struct dcerpc_pipe *p,
return False;
}
- if (r.out.statistics.count != MGMT_STATS_ARRAY_MAX_SIZE) {
- printf("Unexpected array size %d\n", r.out.statistics.count);
+ if (r.out.statistics->count != MGMT_STATS_ARRAY_MAX_SIZE) {
+ printf("Unexpected array size %d\n", r.out.statistics->count);
return False;
}
printf("\tcalls_in %6d calls_out %6d\n\tpkts_in %6d pkts_out %6d\n",
- r.out.statistics.statistics[MGMT_STATS_CALLS_IN],
- r.out.statistics.statistics[MGMT_STATS_CALLS_OUT],
- r.out.statistics.statistics[MGMT_STATS_PKTS_IN],
- r.out.statistics.statistics[MGMT_STATS_PKTS_OUT]);
+ r.out.statistics->statistics[MGMT_STATS_CALLS_IN],
+ r.out.statistics->statistics[MGMT_STATS_CALLS_OUT],
+ r.out.statistics->statistics[MGMT_STATS_PKTS_IN],
+ r.out.statistics->statistics[MGMT_STATS_PKTS_OUT]);
return True;
}
@@ -142,7 +142,7 @@ static BOOL test_is_server_listening(struct dcerpc_pipe *p,
return False;
}
- if (r.out.status != 0 || r.out.result == 0) {
+ if (*r.out.status != 0 || r.out.result == 0) {
printf("\tserver is NOT listening\n");
} else {
printf("\tserver is listening\n");