From 9646e6e1ba5e44b3c4349e85e08ab9f73372a4d5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 May 2000 20:54:46 +0000 Subject: Compile time warning fixes and a time_t -> uint32 conversion fix. Jeremy. (This used to be commit 80a0079b2f993159ef35b02ba5c70ce9d8096879) --- source3/rpc_server/srv_spoolss_nt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index dc24c3bc31..7c56a5f640 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1,3 +1,4 @@ +#define OLD_NTDOMAIN 1 /* * Unix SMB/Netbios implementation. * Version 1.9. @@ -1634,6 +1635,7 @@ static BOOL construct_printer_info_0(PRINTER_INFO_0 *printer, int snum, fstring counter_printer_0 *session_counter; uint32 global_counter; struct tm *t; + time_t setup_time; print_queue_struct *queue=NULL; print_status_struct status; @@ -1684,7 +1686,8 @@ static BOOL construct_printer_info_0(PRINTER_INFO_0 *printer, int snum, fstring printer->total_jobs = 0; printer->total_bytes = 0; - t=gmtime(&ntprinter.info_2->setuptime); + t=gmtime(&setup_time); + ntprinter.info_2->setuptime = (uint32)setup_time; /* FIXME !! */ printer->year = t->tm_year+1900; printer->month = t->tm_mon+1; @@ -3754,7 +3757,7 @@ static uint32 modify_driver_heirarchy(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint pstring path_old; pstring path_new; pstring short_archi; - int snum = snum = find_service("print$"); + int snum = find_service("print$"); char *model = NULL; *short_archi = '\0'; @@ -4437,4 +4440,5 @@ uint32 _spoolss_getjob( POLICY_HND *handle, uint32 jobid, uint32 level, break; } } +#undef OLD_NTDOMAIN -- cgit