diff options
author | Matthew Chapman <matty@samba.org> | 1999-05-01 05:56:55 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-05-01 05:56:55 +0000 |
commit | f456dcf08ec96c631f5e6f2e857115d4bbf94d1b (patch) | |
tree | 65ce51099cc9813bbdd4977f778a535b4719069c /source/rpcclient/display.c | |
parent | 209944dabc764c6ea0c471e7868306c7d8d020d4 (diff) | |
download | samba-f456dcf08ec96c631f5e6f2e857115d4bbf94d1b.tar.gz samba-f456dcf08ec96c631f5e6f2e857115d4bbf94d1b.tar.xz samba-f456dcf08ec96c631f5e6f2e857115d4bbf94d1b.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
Diffstat (limited to 'source/rpcclient/display.c')
-rw-r--r-- | source/rpcclient/display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/display.c b/source/rpcclient/display.c index e5c65fdec8d..963b5b62494 100644 --- a/source/rpcclient/display.c +++ b/source/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; |