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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
$NetBSD: patch-br,v 1.2 2013/01/11 13:24:32 joerg Exp $
--- icb/getline.c.orig 1995-02-24 21:20:22.000000000 +0000
+++ icb/getline.c
@@ -11,7 +11,7 @@ static char *line_read = (char *)NULL;
extern void echo();
-char *getline(prompt, expand)
+char *get_line(prompt, expand)
char *prompt;
int expand;
{
@@ -45,9 +45,7 @@ int expand;
* keystroke handler for tab key
*/
int
-handletab(count, c)
-int count;
-char c;
+handletab(int count, int c)
{
char mpref[256];
int ppoint;
@@ -62,7 +60,7 @@ char c;
/* make sure the history's not empty - punt if it is */
if (histcount()==0)
{
- return;
+ return 0;
}
/* remember cursor location */
@@ -86,7 +84,7 @@ char c;
}
else
printf("\007");
- return;
+ return 0;
}
/* starts with command character */
@@ -128,7 +126,7 @@ char c;
}
else
printf("\007");
- return;
+ return 0;
}
/* case 4 - nickname completion */
@@ -137,7 +135,7 @@ char c;
if (word2len > MAX_NICKLEN)
{
printf("\007");
- return;
+ return 0;
}
if (rl_line_buffer[word2]=='@')
@@ -164,7 +162,7 @@ char c;
}
else
printf("\007");
- return;
+ return 0;
}
/* case 5 - replace nickname */
@@ -191,9 +189,10 @@ char c;
}
else
printf("\007");
- return;
+ return 0;
}
/* anything else */
printf("\007");
+ return 0;
}
|