From 7964e2b72d9cad0309afa7da08dd7e5e2336cd37 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 17 Dec 2016 13:38:22 -0800 Subject: [PATCH] PDP8: Fix SHOW TTIX SUMMARY It was defined in lowercase and has now been made upper case for consistency. The code which performs the match also has been change to do a case insensitive compare. --- PDP8/pdp8_ttx.c | 15 +++++---------- sim_defs.h | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/PDP8/pdp8_ttx.c b/PDP8/pdp8_ttx.c index 087294e8..f0070b74 100644 --- a/PDP8/pdp8_ttx.c +++ b/PDP8/pdp8_ttx.c @@ -144,16 +144,11 @@ REG ttix_reg[] = { }; MTAB ttix_mod[] = { - { MTAB_XTD | MTAB_VDV, 0, "LINES", "LINES", - &ttx_vlines, &tmxr_show_lines, (void *) &ttx_desc }, - { UNIT_ATT, UNIT_ATT, "summary", NULL, - NULL, &tmxr_show_summ, (void *) &ttx_desc }, - { MTAB_XTD | MTAB_VDV, 1, NULL, "DISCONNECT", - &tmxr_dscln, NULL, (void *) &ttx_desc }, - { MTAB_XTD | MTAB_VDV | MTAB_NMO, 1, "CONNECTIONS", NULL, - NULL, &tmxr_show_cstat, (void *) &ttx_desc }, - { MTAB_XTD | MTAB_VDV | MTAB_NMO, 0, "STATISTICS", NULL, - NULL, &tmxr_show_cstat, (void *) &ttx_desc }, + { MTAB_VDV, 0, "LINES", "LINES", &ttx_vlines, &tmxr_show_lines, (void *) &ttx_desc }, + { UNIT_ATT, UNIT_ATT, "SUMMARY", NULL, NULL, &tmxr_show_summ, (void *) &ttx_desc }, + { MTAB_VDV, 1, NULL, "DISCONNECT", &tmxr_dscln, NULL, (void *) &ttx_desc }, + { MTAB_VDV | MTAB_NMO, 1, "CONNECTIONS", NULL, NULL, &tmxr_show_cstat, (void *) &ttx_desc }, + { MTAB_VDV | MTAB_NMO, 0, "STATISTICS", NULL, NULL, &tmxr_show_cstat, (void *) &ttx_desc }, { 0 } }; diff --git a/sim_defs.h b/sim_defs.h index e4d05039..6adda932 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -398,7 +398,7 @@ typedef uint32 t_addr; /* String match - at least one character required */ -#define MATCH_CMD(ptr,cmd) ((NULL == (ptr)) || (!*(ptr)) || strncmp ((ptr), (cmd), strlen (ptr))) +#define MATCH_CMD(ptr,cmd) ((NULL == (ptr)) || (!*(ptr)) || sim_strncasecmp ((ptr), (cmd), strlen (ptr))) /* End of Linked List/Queue value */ /* Chosen for 2 reasons: */