Author: jelmer Date: 2007-01-14 22:28:29 +0000 (Sun, 14 Jan 2007) New Revision: 20784
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20784 Log: Add ref pointer Modified: branches/SAMBA_4_0/source/librpc/idl/mgmt.idl branches/SAMBA_4_0/source/torture/rpc/mgmt.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/mgmt.idl =================================================================== --- branches/SAMBA_4_0/source/librpc/idl/mgmt.idl 2007-01-14 20:47:46 UTC (rev 20783) +++ branches/SAMBA_4_0/source/librpc/idl/mgmt.idl 2007-01-14 22:28:29 UTC (rev 20784) @@ -48,14 +48,14 @@ 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 ); Modified: branches/SAMBA_4_0/source/torture/rpc/mgmt.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/mgmt.c 2007-01-14 20:47:46 UTC (rev 20783) +++ branches/SAMBA_4_0/source/torture/rpc/mgmt.c 2007-01-14 22:28:29 UTC (rev 20784) @@ -80,16 +80,16 @@ 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 @@ 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");