From 314c01073313c45e5da3b88eaf79b11d273c9383 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 11 Sep 2012 10:40:07 +0200 Subject: vty: Address compiler warning about the const qualifier vty.c: In function 'vty_out_newline': vty.c:294:12: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] --- src/vty/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vty/vty.c b/src/vty/vty.c index eda3699c..696766a9 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -291,7 +291,7 @@ int vty_out(struct vty *vty, const char *format, ...) /*! \brief print a newline on the given VTY */ int vty_out_newline(struct vty *vty) { - char *p = vty_newline(vty); + const char *p = vty_newline(vty); buffer_put(vty->obuf, p, strlen(p)); return 0; } -- cgit v1.2.3