summaryrefslogtreecommitdiff
path: root/source4/lib/cmdline/readline.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-15 19:52:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:11 -0500
commitfd619b4fb3a9a5c05df765d2cf57a042a4d5da2d (patch)
tree404c1910d83b1dfb5828f1559a92597815df3a2d /source4/lib/cmdline/readline.c
parenta9e08ba474e4712d121bdce3960fe579f8d68bca (diff)
downloadsamba-fd619b4fb3a9a5c05df765d2cf57a042a4d5da2d.tar.gz
samba-fd619b4fb3a9a5c05df765d2cf57a042a4d5da2d.tar.bz2
samba-fd619b4fb3a9a5c05df765d2cf57a042a4d5da2d.zip
r10245: Get rid of XFILE in a few places.
Add fdprintf() and vfdprintf() helper functions. (This used to be commit 6685009f6af94b088084d69a43bcea5f8335ae57)
Diffstat (limited to 'source4/lib/cmdline/readline.c')
-rw-r--r--source4/lib/cmdline/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/cmdline/readline.c b/source4/lib/cmdline/readline.c
index 4970638d41..42810c8697 100644
--- a/source4/lib/cmdline/readline.c
+++ b/source4/lib/cmdline/readline.c
@@ -59,7 +59,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void)
fd_set fds;
static pstring line;
struct timeval timeout;
- int fd = x_fileno(x_stdin);
+ int fd = STDIN_FILENO;
char *ret;
do_debug("%s", prompt);
@@ -88,7 +88,7 @@ char *smb_readline(const char *prompt, void (*callback)(void),
char **(completion_fn)(const char *text, int start, int end))
{
#if HAVE_LIBREADLINE
- if (isatty(x_fileno(x_stdin))) {
+ if (isatty(STDIN_FILENO)) {
char *ret;
/* Aargh! Readline does bizzare things with the terminal width