]> git.proxmox.com Git - mirror_frr.git/commit - lib/buffer.h
lib: move \n vs. \r\n handling into vty code
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 13 Jul 2017 15:34:08 +0000 (17:34 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 13 Jul 2017 18:29:20 +0000 (20:29 +0200)
commit83eba583d7be5afaf2eba35ce4d391f645af4bfa
tree1dc80b60d845022589a592405e2d4bb7c1a392bd
parent8867927f0ea63a0a76ac75592da554da995ed9de
lib: move \n vs. \r\n handling into vty code

Instead of having an ?: expression embedded in every single caller of
vty_out, just expand \n to \r\n in the vty code if neccessary.

(Deprecation warnings will be enabled in the next commits which will do
the search-and-replace over the codebase.)

[This reverts commit 4d5f445 "lib: add vty_outln()"]

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/buffer.c
lib/buffer.h
lib/vty.c
lib/vty.h
ospf6d/ospf6d.h