From 4bdd57be745679ee8fc97a3029fa837b14a80b50 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 9 Aug 2017 16:00:17 +0100 Subject: [PATCH] fmtdump.c: Add string for FT_LS_UNQUOTE case. 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 | 4 ++-- uip/fmtdump.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/format/test-fmtdump b/test/format/test-fmtdump index aebb8ed3..167945f4 100755 --- a/test/format/test-fmtdump +++ b/test/format/test-fmtdump @@ -172,13 +172,13 @@ L7: MYMBOX, c_name "from", c_type PARSEADDR, c_name "to", c_type LS_FRIENDLY, c_name "to", c_type FT_LS_DECODE - + LS_UNQUOTE STRF, width 14, fill ' ' L8: IF_V_EQ 0 continue else goto L9 PARSEADDR, c_name "from", c_type LS_FRIENDLY, c_name "from", c_type FT_LS_DECODE - + LS_UNQUOTE STRF, width 17, fill ' ' L9: LIT " " LS_COMP, comp "subject" diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 55d7dcc7..57968f0e 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -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"); -- 2.56.0