summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display.c
diff options
context:
space:
mode:
authorMatthew Chapman <matty@samba.org>1999-05-01 05:56:55 +0000
committerMatthew Chapman <matty@samba.org>1999-05-01 05:56:55 +0000
commite3a888d5a935047367e531321981cbed8618c5a3 (patch)
treecfbf41483bffd10b3cac43bb1dc76a955a80bb43 /source3/rpcclient/display.c
parent89d51caba5bed5c3329b3776e15fce2bb41f7592 (diff)
downloadsamba-e3a888d5a935047367e531321981cbed8618c5a3.tar.gz
samba-e3a888d5a935047367e531321981cbed8618c5a3.tar.bz2
samba-e3a888d5a935047367e531321981cbed8618c5a3.zip
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)
Diffstat (limited to 'source3/rpcclient/display.c')
-rw-r--r--source3/rpcclient/display.c4
1 files changed, 2 insertions, 2 deletions
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;