]> git.puffer.fish Git - mirror/frr.git/commit
lib: Moved no-password warnings into header file
authorPascal Mathis <mail@pascalmathis.com>
Sun, 13 May 2018 17:11:43 +0000 (19:11 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Tue, 29 May 2018 18:08:37 +0000 (20:08 +0200)
commit3c699296e08b533bce0067473636e5ad66143193
tree8eb9428ea85186cbb0f7cfe82d56621c50dfb53e
parent5e73768bfac4baae1b562976eeca91beb34c67f4
lib: Moved no-password warnings into header file

The warning string which appears when the users executes 'no (enable)
password' was moved into command.h and declared as a constant named
'NO_PASSWD_CMD_WARNING'.

This avoids duplicate code and makes it easy to change the warning
message in all places at once.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
(cherry picked from commit 4911ca9cab5d75b5031edb83b52423ed47798324)
lib/command.c
lib/command.h
vtysh/vtysh.c