summaryrefslogtreecommitdiff
path: root/source3/lib/readline.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-10-09 19:12:18 +0000
committerSimo Sorce <idra@samba.org>2001-10-09 19:12:18 +0000
commit52341e94a86420368b479acd2c760468444fef72 (patch)
treedc604e7a358d1598fb639272c3101d9239430cff /source3/lib/readline.c
parentf5a5acec33160e9eedad079afe04597f796658d3 (diff)
downloadsamba-52341e94a86420368b479acd2c760468444fef72.tar.gz
samba-52341e94a86420368b479acd2c760468444fef72.tar.bz2
samba-52341e94a86420368b479acd2c760468444fef72.zip
initial support to error report in smbclient, useful when using smbclient -c in scripts.
Thanks to Claudio Cicali aka FleXer for the initial patch (This used to be commit 53b95b3c0fd087b1cade95fd8de849547ac3bfcb)
Diffstat (limited to 'source3/lib/readline.c')
-rw-r--r--source3/lib/readline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index f7ef40b001..2475017adf 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -88,7 +88,7 @@ char *smb_readline(char *prompt, void (*callback)(void),
/****************************************************************************
history
****************************************************************************/
-void cmd_history(void)
+int cmd_history(void)
{
#if defined(HAVE_LIBREADLINE)
HIST_ENTRY **hlist;
@@ -102,4 +102,6 @@ void cmd_history(void)
#else
DEBUG(0,("no history without readline support\n"));
#endif
+
+ return 0;
}