summaryrefslogtreecommitdiff
path: root/libcli/smbreadline
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-20 14:06:21 +0100
committerGary Lockyer <gary@samba.org>2018-11-28 23:19:22 +0100
commitb51e8b980801f635bffe57a648606ad388f22923 (patch)
treec5839271193eb4fbdae207d5c005e5d7af68d4e3 /libcli/smbreadline
parentaee760cdc93934225acd0cd8eb5cb0fafaae7717 (diff)
downloadsamba-b51e8b980801f635bffe57a648606ad388f22923.tar.gz
libcli:smbreadline: Use #ifdef instead of #if for config.h definitions
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli/smbreadline')
-rw-r--r--libcli/smbreadline/smbreadline.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c
index 1a0f61c2cfe..6929209be20 100644
--- a/libcli/smbreadline/smbreadline.c
+++ b/libcli/smbreadline/smbreadline.c
@@ -47,7 +47,7 @@
static bool smb_rl_done;
-#if HAVE_LIBREADLINE
+#ifdef HAVE_LIBREADLINE
/*
* MacOS/X does not have rl_done in readline.h, but
* readline.so has it
@@ -58,7 +58,7 @@ extern int rl_done;
void smb_readline_done(void)
{
smb_rl_done = true;
-#if HAVE_LIBREADLINE
+#ifdef HAVE_LIBREADLINE
rl_done = 1;
#endif
}
@@ -122,7 +122,7 @@ char *smb_readline(const char *prompt, void (*callback)(void),
return smb_readline_replacement(NULL, callback, completion_fn);
}
-#if HAVE_LIBREADLINE
+#ifdef HAVE_LIBREADLINE
/* Aargh! Readline does bizzare things with the terminal width
that mucks up expect(1). Set CLI_NO_READLINE in the environment
@@ -145,7 +145,7 @@ char *smb_readline(const char *prompt, void (*callback)(void),
rl_basic_word_break_characters = " \t\n";
}
-#if HAVE_DECL_RL_EVENT_HOOK
+#ifdef HAVE_DECL_RL_EVENT_HOOK
if (callback)
rl_event_hook = (rl_hook_func_t *)callback;
#endif