This macro neither takes nor produces an empty string.
Remove it in favor of NULLSTR_MINUS.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
*/
# define NULLSTR(s) ((s) ? (s) : "<null>")
-/*
- * Similar to NULLSTR, but print '-' to make it more user friendly.
- */
-# define EMPTYSTR(s) ((s) ? (s) : "-")
-
/*
* Turn a NULL string into an empty string
*/
if (vshTableRowAppend(table,
expirytime,
- EMPTYSTR(lease->mac),
- EMPTYSTR(typestr),
- EMPTYSTR(cidr_format),
- EMPTYSTR(lease->hostname),
- EMPTYSTR(lease->clientid),
+ NULLSTR_MINUS(lease->mac),
+ NULLSTR_MINUS(typestr),
+ NULLSTR_MINUS(cidr_format),
+ NULLSTR_MINUS(lease->hostname),
+ NULLSTR_MINUS(lease->clientid),
NULL) < 0)
goto cleanup;
}