From e3a888d5a935047367e531321981cbed8618c5a3 Mon Sep 17 00:00:00 2001 From: Matthew Chapman Date: Sat, 1 May 1999 05:56:55 +0000 Subject: Adding "time" rpcclient command which displays the remote time. Also added special "now" time to the "at" command, e.g.: at now /i cmd ; pops up a command prompt (This used to be commit f456dcf08ec96c631f5e6f2e857115d4bbf94d1b) --- source3/rpcclient/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpcclient/display.c') diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c index e5c65fdec8..963b5b6249 100644 --- a/source3/rpcclient/display.c +++ b/source3/rpcclient/display.c @@ -1662,12 +1662,12 @@ void display_svc_info(FILE *out_hnd, enum action_type action, ENUM_SRVC_STATUS * } } -static char *get_at_time_str(uint32 time) +static char *get_at_time_str(uint32 t) { static fstring timestr; unsigned int hours, minutes, seconds; - hours = time / 1000; + hours = t / 1000; seconds = hours % 60; hours /= 60; minutes = hours % 60; -- cgit