/[gentoo-x86]/net-misc/lldpd/files/lldpd-0.7.7-fix-readline-wrapper.patch
Gentoo

Contents of /net-misc/lldpd/files/lldpd-0.7.7-fix-readline-wrapper.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Mon Oct 13 18:06:06 2014 UTC (5 years, 4 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
FILE REMOVED
Revision bump, make sure to pass LLDPD_OPTS to the command line (bug #525190). Remove old.

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)

1 commit 02987888adc8575cd8efa103fe901de69224f4b4
2 Author: Vincent Bernat <bernat@luffy.cx>
3 Date: Thu Feb 20 21:57:29 2014 +0100
4
5 lldpcli: fix readline() wrapper to take prompt as argument
6
7 `readline()` is expecting the prompt as argument. We fix the wrapper to
8 have the same requirement.
9
10 diff --git a/src/client/lldpcli.c b/src/client/lldpcli.c
11 index 4223c90..35c1b94 100644
12 --- a/src/client/lldpcli.c
13 +++ b/src/client/lldpcli.c
14 @@ -239,10 +239,10 @@ cmd_help(int count, int ch)
15 }
16 #else
17 static char*
18 -readline()
19 +readline(const char *p)
20 {
21 static char line[2048];
22 - fprintf(stderr, "%s", prompt());
23 + fprintf(stderr, "%s", p);
24 fflush(stderr);
25 if (fgets(line, sizeof(line) - 2, stdin) == NULL)
26 return NULL;

  ViewVC Help
Powered by ViewVC 1.1.20