提交 77908cfc 编写于 作者: J Ján Tomko

Remove EMPTYSTR macro

This macro neither takes nor produces an empty string.
Remove it in favor of NULLSTR_MINUS.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
上级 57f52628
......@@ -240,11 +240,6 @@
*/
# 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
*/
......
......@@ -1398,11 +1398,11 @@ cmdNetworkDHCPLeases(vshControl *ctl, const vshCmd *cmd)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册