From 02987888adc8575cd8efa103fe901de69224f4b4 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 20 Feb 2014 21:57:29 +0100 Subject: [PATCH] lldpcli: fix readline() wrapper to take prompt as argument `readline()` is expecting the prompt as argument. We fix the wrapper to have the same requirement. --- src/client/lldpcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/lldpcli.c b/src/client/lldpcli.c index 4223c90f..35c1b94d 100644 --- a/src/client/lldpcli.c +++ b/src/client/lldpcli.c @@ -239,10 +239,10 @@ cmd_help(int count, int ch) } #else static char* -readline() +readline(const char *p) { static char line[2048]; - fprintf(stderr, "%s", prompt()); + fprintf(stderr, "%s", p); fflush(stderr); if (fgets(line, sizeof(line) - 2, stdin) == NULL) return NULL; -- 2.39.5