1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
*** src/console/console.c.orig Sun Jun 20 13:43:02 2004
--- src/console/console.c Sat Jul 3 10:48:13 2004
***************
*** 63,69 ****
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
--- 63,69 ----
/* Forward referenced functions */
static void terminate_console(int sig);
! int get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec);
static int do_outputcmd(FILE *input, BSOCK *UA_sock);
void senditf(const char *fmt, ...);
void sendit(const char *buf);
***************
*** 200,206 ****
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! const char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
--- 200,206 ----
static void read_and_process_input(FILE *input, BSOCK *UA_sock)
{
! char *prompt = "*";
bool at_prompt = false;
int tty_input = isatty(fileno(input));
int stat;
***************
*** 499,510 ****
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
#include "readline.h"
#include "history.h"
-
int
! get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec)
{
char *line;
--- 499,510 ----
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
#undef free
+ #include <stdio.h>
#include "readline.h"
#include "history.h"
int
! get_cmd(FILE *input, char *prompt, BSOCK *sock, int sec)
{
char *line;
|