mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r8899: various compiler warning fixes reported by Jason Mader <jason@ncac.gwu.edu>
(This used to be commit d8ae9f2b3e
)
This commit is contained in:
parent
473cfa4c35
commit
14a9d52832
@ -386,7 +386,7 @@ void standard_sub_basic(const char *smb_name, char *str,size_t len)
|
||||
string_sub(p,"%i", client_socket_addr(),l);
|
||||
break;
|
||||
case 'L' :
|
||||
if (!StrnCaseCmp(p, "\%LOGONSERVER\%", 13)) {
|
||||
if (!StrnCaseCmp(p, "%LOGONSERVER%", strlen("%LOGONSERVER%"))) {
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ WERROR get_remote_printer_publishing_data(struct cli_state *cli,
|
||||
return result;
|
||||
}
|
||||
|
||||
result = cli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, NULL);
|
||||
result = cli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, &dsdriver_ctr);
|
||||
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
DEBUG(3, ("Unable to do enumdataex on %s, error is %s.\n",
|
||||
@ -300,7 +300,7 @@ WERROR get_remote_printer_publishing_data(struct cli_state *cli,
|
||||
dsdriver_ctr.values[i]);
|
||||
}
|
||||
|
||||
result = cli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, NULL);
|
||||
result = cli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, &dsspooler_ctr);
|
||||
|
||||
if (!W_ERROR_IS_OK(result)) {
|
||||
DEBUG(3, ("Unable to do enumdataex on %s, error is %s.\n",
|
||||
|
@ -714,7 +714,7 @@ BOOL svcctl_io_q_query_service_config2(const char *desc, SVCCTL_Q_QUERY_SERVICE_
|
||||
void init_service_description_buffer(RPC_DATA_BLOB *str, const char *service_desc, int blob_length)
|
||||
{
|
||||
uint32 offset;
|
||||
char *bp;
|
||||
uint8 *bp;
|
||||
|
||||
ZERO_STRUCTP(str);
|
||||
|
||||
|
@ -2201,7 +2201,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct cli_state *cli,
|
||||
uint32 i;
|
||||
BOOL got_hnd = False;
|
||||
pstring printername;
|
||||
fstring servername, user;
|
||||
fstring servername, user
|
||||
const char *keyname = NULL;
|
||||
POLICY_HND hnd;
|
||||
REGVAL_CTR ctr;
|
||||
@ -2233,8 +2233,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct cli_state *cli,
|
||||
|
||||
/* Enumerate subkeys */
|
||||
|
||||
result = cli_spoolss_enumprinterdataex(
|
||||
cli, mem_ctx, &hnd, keyname, NULL);
|
||||
result = cli_spoolss_enumprinterdataex(cli, mem_ctx, &hnd, keyname, &ctr);
|
||||
|
||||
if (!W_ERROR_IS_OK(result))
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user