1
0
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:
Gerald Carter 2005-08-01 20:54:31 +00:00 committed by Gerald (Jerry) Carter
parent 473cfa4c35
commit 14a9d52832
4 changed files with 6 additions and 7 deletions

View File

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

View File

@ -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",

View File

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

View File

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