1 |
chutzpah 14/02/21 18:47:02 |
2 |
|
3 |
Added: lldpd-0.7.7-fix-readline-wrapper.patch |
4 |
Log: |
5 |
Version bump (bug #501994), add seccomp USE flag. |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-misc/lldpd/files/lldpd-0.7.7-fix-readline-wrapper.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/files/lldpd-0.7.7-fix-readline-wrapper.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/files/lldpd-0.7.7-fix-readline-wrapper.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: lldpd-0.7.7-fix-readline-wrapper.patch |
16 |
=================================================================== |
17 |
commit 02987888adc8575cd8efa103fe901de69224f4b4 |
18 |
Author: Vincent Bernat <bernat@×××××.cx> |
19 |
Date: Thu Feb 20 21:57:29 2014 +0100 |
20 |
|
21 |
lldpcli: fix readline() wrapper to take prompt as argument |
22 |
|
23 |
`readline()` is expecting the prompt as argument. We fix the wrapper to |
24 |
have the same requirement. |
25 |
|
26 |
diff --git a/src/client/lldpcli.c b/src/client/lldpcli.c |
27 |
index 4223c90..35c1b94 100644 |
28 |
--- a/src/client/lldpcli.c |
29 |
+++ b/src/client/lldpcli.c |
30 |
@@ -239,10 +239,10 @@ cmd_help(int count, int ch) |
31 |
} |
32 |
#else |
33 |
static char* |
34 |
-readline() |
35 |
+readline(const char *p) |
36 |
{ |
37 |
static char line[2048]; |
38 |
- fprintf(stderr, "%s", prompt()); |
39 |
+ fprintf(stderr, "%s", p); |
40 |
fflush(stderr); |
41 |
if (fgets(line, sizeof(line) - 2, stdin) == NULL) |
42 |
return NULL; |