1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r20784: Add ref pointer

(This used to be commit 2ba225ee12180d40a957e4e9a824a544c803a265)
This commit is contained in:
Jelmer Vernooij 2007-01-14 22:28:29 +00:00 committed by Gerald (Jerry) Carter
parent 79cd3ada82
commit cd15a223cc
2 changed files with 9 additions and 9 deletions

View File

@ -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
);

View File

@ -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");