Commit 99d02489 authored by Niels Möller's avatar Niels Möller
Browse files

Fixed prototypes for funtions

taking no arguments.

Rev: src/sftp/rl.c:1.2
Rev: src/sftp/rl.h:1.2
parent bdd55eb4
......@@ -496,12 +496,14 @@ char* lsftp_rl_history_fname()
/* Readline not found */
inline void lsftp_rl_init_get_line(char* prompt)
inline void
lsftp_rl_init_get_line(char* prompt UNUSED)
{
/* Do nothing */
}
char* lsftp_rl_get_line()
char *
lsftp_rl_get_line(void )
{
/*
......@@ -509,24 +511,30 @@ char* lsftp_rl_get_line()
return 0;
}
void lsftp_rl_check_input()
void
lsftp_rl_check_input(void)
{
}
void lsftp_rl_unuse_line(char* line)
void
lsftp_rl_unuse_line(char* line)
{
free(line);
}
void lsftp_rl_init()
void
lsftp_rl_init(void)
{
interactive=0;
}
void lsftp_rl_exit()
void
lsftp_rl_exit(void)
{
}
char* lsftp_rl_history_fname()
char*
lsftp_rl_history_fname(void)
{
return 0;
}
......
......@@ -77,12 +77,12 @@
/* These are "public" functions */
void lsftp_rl_init_get_line(char* prompt);
char* lsftp_rl_get_line();
void lsftp_rl_check_input();
char* lsftp_rl_get_line(void );
void lsftp_rl_check_input(void);
void lsftp_rl_unuse_line(char* line);
void lsftp_rl_init();
void lsftp_rl_exit();
char* lsftp_rl_history_fname();
void lsftp_rl_init(void);
void lsftp_rl_exit(void);
char* lsftp_rl_history_fname(void);
/* "Private" functions below */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment