summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 10:40:07 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 10:40:07 +0200
commit314c01073313c45e5da3b88eaf79b11d273c9383 (patch)
treeef7fd4a7b6204f8f3b3fee23fb8b55dd317f9f40 /src
parentb321b93286006851bec47e6a8c0cd03ba3b72c26 (diff)
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]
Diffstat (limited to 'src')
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
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;
}