summaryrefslogtreecommitdiff
path: root/source3/utils/net_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_time.c')
-rw-r--r--source3/utils/net_time.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c
index 40619a0796..4cf923b1f7 100644
--- a/source3/utils/net_time.c
+++ b/source3/utils/net_time.c
@@ -65,6 +65,9 @@ done:
/* find the servers time on the opt_host host */
static time_t nettime(int *zone)
{
+ extern BOOL opt_have_ip;
+ extern struct in_addr opt_dest_ip;
+ extern char *opt_host;
return cli_servertime(opt_host, opt_have_ip? &opt_dest_ip : NULL, zone);
}
@@ -152,6 +155,9 @@ static int net_time_zone(int argc, const char **argv)
int net_time(int argc, const char **argv)
{
time_t t;
+ extern BOOL opt_have_ip;
+ extern struct in_addr opt_dest_ip;
+ extern char *opt_host;
struct functable func[] = {
{"SYSTEM", net_time_system},
{"SET", net_time_set},