mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Remove backslash alignment attempts
Right-aligning backslashes when defining macros or using complex
commands in Makefiles looks cute, but as soon as any changes is
required to the code you end up with either distractingly broken
alignment or unnecessarily big diffs where most of the changes
are just pushing all backslashes a few characters to one side.
Generated using
$ git grep -El '[[:blank:]][[:blank:]]\\$' | \
grep -E '*\.([chx]|am|mk)$$' | \
while read f; do \
sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
done
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define VIRSH_COMMON_OPT_INTERFACE \
|
||||
{.name = "interface", \
|
||||
.type = VSH_OT_DATA, \
|
||||
.flags = VSH_OFLAG_REQ, \
|
||||
.help = N_("interface name or MAC address") \
|
||||
} \
|
||||
#define VIRSH_COMMON_OPT_INTERFACE \
|
||||
{.name = "interface", \
|
||||
.type = VSH_OT_DATA, \
|
||||
.flags = VSH_OFLAG_REQ, \
|
||||
.help = N_("interface name or MAC address") \
|
||||
} \
|
||||
|
||||
#include <config.h>
|
||||
#include "virsh-interface.h"
|
||||
@@ -125,12 +125,12 @@ cmdInterfaceEdit(vshControl *ctl, const vshCmd *cmd)
|
||||
goto cleanup;
|
||||
|
||||
#define EDIT_GET_XML virInterfaceGetXMLDesc(iface, flags)
|
||||
#define EDIT_NOT_CHANGED \
|
||||
do { \
|
||||
#define EDIT_NOT_CHANGED \
|
||||
do { \
|
||||
vshPrintExtra(ctl, _("Interface %s XML configuration not changed.\n"), \
|
||||
virInterfaceGetName(iface)); \
|
||||
ret = true; \
|
||||
goto edit_cleanup; \
|
||||
virInterfaceGetName(iface)); \
|
||||
ret = true; \
|
||||
goto edit_cleanup; \
|
||||
} while (0)
|
||||
#define EDIT_DEFINE \
|
||||
(iface_edited = virInterfaceDefineXML(priv->conn, doc_edited, 0))
|
||||
|
||||
Reference in New Issue
Block a user