1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3: Lift the smbd_messaging_context from enum_all_printers_info_1_local

This commit is contained in:
Volker Lendecke 2010-08-08 14:03:52 +02:00
parent 67fbb0462e
commit 6dc35f8f70

View File

@ -3941,13 +3941,13 @@ static WERROR enum_all_printers_info_1(TALLOC_CTX *mem_ctx,
static WERROR enum_all_printers_info_1_local(TALLOC_CTX *mem_ctx, static WERROR enum_all_printers_info_1_local(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
union spoolss_PrinterInfo **info, union spoolss_PrinterInfo **info,
uint32_t *count) uint32_t *count)
{ {
DEBUG(4,("enum_all_printers_info_1_local\n")); DEBUG(4,("enum_all_printers_info_1_local\n"));
return enum_all_printers_info_1(mem_ctx, server_info, return enum_all_printers_info_1(mem_ctx, server_info, msg_ctx,
smbd_messaging_context(),
PRINTER_ENUM_ICON8, info, count); PRINTER_ENUM_ICON8, info, count);
} }
@ -4045,7 +4045,9 @@ static WERROR enumprinters_level1(TALLOC_CTX *mem_ctx,
/* Not all the flags are equals */ /* Not all the flags are equals */
if (flags & PRINTER_ENUM_LOCAL) { if (flags & PRINTER_ENUM_LOCAL) {
return enum_all_printers_info_1_local(mem_ctx, server_info, info, count); return enum_all_printers_info_1_local(mem_ctx, server_info,
smbd_messaging_context(),
info, count);
} }
if (flags & PRINTER_ENUM_NAME) { if (flags & PRINTER_ENUM_NAME) {