From: Martin Mares Date: Fri, 25 Jul 2014 10:50:28 +0000 (+0200) Subject: Extended types: Let unknown formats behave as XTYPE_FMT_DEFAULT X-Git-Tag: v6.1~3^2~46 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b85d4fe8b815ec080c08d5ace037a63d2649b58f;p=libucw.git Extended types: Let unknown formats behave as XTYPE_FMT_DEFAULT Otherwise, it would be very hard to define new common formats in the future. --- diff --git a/ucw/xtypes-basic.c b/ucw/xtypes-basic.c index 1c4696b3..94dc1ed0 100644 --- a/ucw/xtypes-basic.c +++ b/ucw/xtypes-basic.c @@ -111,9 +111,8 @@ static const char *xt_bool_format(void *src, u32 fmt UNUSED, struct mempool *poo return val ? "true" : "false"; case XTYPE_FMT_DEFAULT: case XTYPE_FMT_RAW: - return val ? "1" : "0"; default: - ASSERT(0); + return val ? "1" : "0"; } }