summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/undo.c')
-rw-r--r--cmd-line-utils/readline/undo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd-line-utils/readline/undo.c b/cmd-line-utils/readline/undo.c
index 947da3d00d0..25c287b5a2d 100644
--- a/cmd-line-utils/readline/undo.c
+++ b/cmd-line-utils/readline/undo.c
@@ -22,7 +22,9 @@
59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY
-#include "config_readline.h"
+#if defined (HAVE_CONFIG_H)
+# include <config.h>
+#endif
#include <sys/types.h>
@@ -169,8 +171,7 @@ rl_do_undo ()
int
_rl_fix_last_undo_of_type (type, start, end)
- unsigned int type;
- int start, end;
+ int type, start, end;
{
UNDO_LIST *rl;
@@ -228,7 +229,7 @@ rl_modifying (start, end)
/* Revert the current line to its previous state. */
int
rl_revert_line (count, key)
- int count __attribute__((unused)), key __attribute__((unused));
+ int count, key;
{
if (!rl_undo_list)
rl_ding ();
@@ -243,7 +244,7 @@ rl_revert_line (count, key)
/* Do some undoing of things that were done. */
int
rl_undo_command (count, key)
- int count, key __attribute__((unused));
+ int count, key;
{
if (count < 0)
return 0; /* Nothing to do. */