]> git.puffer.fish Git - matthieu/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>
Sun, 13 May 2018 17:11:43 +0000 (19:11 +0200)
commit4911ca9cab5d75b5031edb83b52423ed47798324
tree17eee5c4c06d2dc8be13ac389ec72c469701c9be
parenteb83f7ce842944518bac726c19eb071257a2ed56
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>
lib/command.c
lib/command.h
vtysh/vtysh.c