]> diplodocus.org Git - nmh/commitdiff
fmtdump.c: Add string for FT_LS_UNQUOTE case.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 9 Aug 2017 15:00:17 +0000 (16:00 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 9 Aug 2017 15:00:17 +0000 (16:00 +0100)
It was missing since e8635a8a1 and the default case that attempted to
format it as a number was faulty, fixed in 39ecf70bb.  That fix broke
test/format/test-fmtdump as it expected the broken "blank line" to be
output instead.

test/format/test-fmtdump
uip/fmtdump.c

index aebb8ed..167945f 100755 (executable)
@@ -172,13 +172,13 @@ L7:       MYMBOX, c_name "from", c_type <ADDR>
        PARSEADDR, c_name "to", c_type <ADDR>
        LS_FRIENDLY, c_name "to", c_type <ADDR>
        FT_LS_DECODE
-       
+       LS_UNQUOTE
        STRF, width 14, fill ' '
 L8:    IF_V_EQ 0 continue else goto L9
        PARSEADDR, c_name "from", c_type <ADDR>
        LS_FRIENDLY, c_name "from", c_type <ADDR>
        FT_LS_DECODE
-       
+       LS_UNQUOTE
        STRF, width 17, fill ' '
 L9:    LIT "  "
        LS_COMP, comp "subject"
index 55d7dcc..57968f0 100644 (file)
@@ -409,6 +409,7 @@ f_typestr(int t)
        case FT_LS_FRIENDLY: return("LS_FRIENDLY");
        case FT_LV_HOSTTYPE: return("LV_HOSTTYPE");
        case FT_LV_INGRPF: return("LV_INGRPF");
+       case FT_LS_UNQUOTE: return("LS_UNQUOTE");
        case FT_LV_NOHOSTF: return("LV_NOHOSTF");
        case FT_LOCALDATE: return("LOCALDATE");
        case FT_GMTDATE: return("GMTDATE");