summaryrefslogtreecommitdiff
path: root/source4/utils/net/net_time.c
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-02-15 01:11:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:41 -0500
commit530d46f6748a17ca8500a861f53c0d4f451b2005 (patch)
tree2d48faf15fff2866be9eec548802ef5f28114b0d /source4/utils/net/net_time.c
parente428eee91b3506c0c02a35dbf01e55da2c73b547 (diff)
downloadsamba-530d46f6748a17ca8500a861f53c0d4f451b2005.tar.gz
samba-530d46f6748a17ca8500a861f53c0d4f451b2005.tar.bz2
samba-530d46f6748a17ca8500a861f53c0d4f451b2005.zip
r5400: Slightly better handling of help messages in net tool.
rafal (This used to be commit 5cebb4feedf7d6542c497fe55763d66f51b1c989)
Diffstat (limited to 'source4/utils/net/net_time.c')
-rw-r--r--source4/utils/net/net_time.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c
index ec3bc0519f..ce7db4ab5c 100644
--- a/source4/utils/net/net_time.c
+++ b/source4/utils/net/net_time.c
@@ -28,7 +28,6 @@
* Code for getting the remote time
*/
-
int net_time(struct net_context *ctx, int argc, const char **argv)
{
NTSTATUS status;
@@ -41,8 +40,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
if (argc > 0 && argv[0]) {
server_name = argv[0];
} else {
- DEBUG(0,("net_time: server name needed!\n"));
- return -1;
+ return net_time_usage(ctx, argc, argv);
}
libnetctx = libnet_context_init();
@@ -77,12 +75,12 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
int net_time_usage(struct net_context *ctx, int argc, const char **argv)
{
- d_printf("net_time_usage: TODO\n");
+ d_printf("net time <server> [options]\n");
return 0;
}
int net_time_help(struct net_context *ctx, int argc, const char **argv)
{
- d_printf("net_time_help: TODO\n");
+ d_printf("Displays remote server's time.\n");
return 0;
}