summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-26 20:54:46 +0000
committerJeremy Allison <jra@samba.org>2000-05-26 20:54:46 +0000
commit9646e6e1ba5e44b3c4349e85e08ab9f73372a4d5 (patch)
tree00124d93451ba0cff8f27fccea576a5991d58035 /source3
parent3808642bebe760f6412ae0d79c6e50f01fdd8875 (diff)
downloadsamba-9646e6e1ba5e44b3c4349e85e08ab9f73372a4d5.tar.gz
samba-9646e6e1ba5e44b3c4349e85e08ab9f73372a4d5.tar.bz2
samba-9646e6e1ba5e44b3c4349e85e08ab9f73372a4d5.zip
Compile time warning fixes and a time_t -> uint32 conversion fix.
Jeremy. (This used to be commit 80a0079b2f993159ef35b02ba5c70ce9d8096879)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
1 files changed, 6 insertions, 2 deletions
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