]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: provide a working prototype for readline()
authorVincent Bernat <vincent@bernat.ch>
Sat, 4 May 2024 12:49:25 +0000 (14:49 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 4 May 2024 12:49:25 +0000 (14:49 +0200)
src/client/client.h

index 04fca949445aa8decaacfc06e77a5ac16d7dad3f..dd4e104c61a2c72e6cbf844a732cc3b18273da61 100644 (file)
 #  elif defined(HAVE_READLINE_H)
 #    include <readline.h>
 #  else
-extern char *readline();
+extern char *readline(const char *);
 extern char *rl_line_buffer;
 extern int rl_point;
 extern int rl_insert_text(const char *);
-extern void rl_forced_update_display(void);
 extern int rl_bind_key(int, int (*f)(int, int));
+extern void rl_forced_update_display(void);
 #  endif
 #endif
 #ifdef HAVE_READLINE_HISTORY
@@ -57,7 +57,7 @@ extern int rl_bind_key(int, int (*f)(int, int));
 #  elif defined(HAVE_HISTORY_H)
 #    include <history.h>
 #  else
-extern void add_history();
+extern void add_history(const char *);
 #  endif
 #endif
 #undef NEWLINE