diff options
author | Tim Potter <tpot@samba.org> | 2002-10-21 04:03:49 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-10-21 04:03:49 +0000 |
commit | aed3a9f3435b0d337645d3c7efc8d32194a8c528 (patch) | |
tree | 81b94450d044190545a5b10e8e437547682518cf /source3/rpc_client | |
parent | 66ad44b588c491fc2352016b3c7da97c4f678a29 (diff) | |
download | samba-aed3a9f3435b0d337645d3c7efc8d32194a8c528.tar.gz samba-aed3a9f3435b0d337645d3c7efc8d32194a8c528.tar.bz2 samba-aed3a9f3435b0d337645d3c7efc8d32194a8c528.zip |
Fix a silly memset typo.
Change a int* to a uint32* in the cli_spoolss_enum_ports() function.
(This used to be commit 4663d79d3e9dcfef49f7cef1f6205efe58edbdc1)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index 2c3d48301b..92077f9637 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -159,7 +159,7 @@ static void decode_port_info_2(TALLOC_CTX *mem_ctx, NEW_BUFFER *buffer, PORT_INFO_2 *inf; inf=(PORT_INFO_2*)talloc(mem_ctx, returned*sizeof(PORT_INFO_2)); - memset(info, 0, returned*sizeof(PORT_INFO_2)); + memset(inf, 0, returned*sizeof(PORT_INFO_2)); prs_set_offset(&buffer->prs, 0); @@ -499,7 +499,7 @@ WERROR cli_spoolss_enum_printers(struct cli_state *cli, TALLOC_CTX *mem_ctx, WERROR cli_spoolss_enum_ports(struct cli_state *cli, TALLOC_CTX *mem_ctx, uint32 offered, uint32 *needed, - uint32 level, int *num_ports, PORT_INFO_CTR *ctr) + uint32 level, uint32 *num_ports, PORT_INFO_CTR *ctr) { prs_struct qbuf, rbuf; SPOOL_Q_ENUMPORTS q; |