summaryrefslogtreecommitdiff
path: root/tests/lib/cli/common_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/cli/common_cli.c')
-rw-r--r--tests/lib/cli/common_cli.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c
index 93d6382a63..b6df6d3b8d 100644
--- a/tests/lib/cli/common_cli.c
+++ b/tests/lib/cli/common_cli.c
@@ -14,10 +14,9 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with Quagga; see the file COPYING. If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <zebra.h>
@@ -37,9 +36,10 @@ int dump_args(struct vty *vty, const char *descr, int argc,
struct cmd_token *argv[])
{
int i;
- vty_out(vty, "%s with %d args.%s", descr, argc, VTY_NEWLINE);
+ vty_out(vty, "%s with %d args.\n", descr, argc);
for (i = 0; i < argc; i++) {
- vty_out(vty, "[%02d]: %s%s", i, argv[i]->arg, VTY_NEWLINE);
+ vty_out(vty, "[%02d] %s@%s: %s\n", i, argv[i]->text,
+ argv[i]->varname, argv[i]->arg);
}
return CMD_SUCCESS;
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
umask(0027);
/* master init. */
- master = thread_master_create();
+ master = thread_master_create(NULL);
openzlog("common-cli", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID,
LOG_DAEMON);