[libvirt] [PATCH] virsh: fix syntax check

Eric Blake eblake at redhat.com
Sat Aug 18 14:35:58 UTC 2012


Oops, I pushed patches without doing syntax checks along the way.

* cfg.mk (exclude_file_name_regexp--sc_avoid_strcase): Track file
split.
* tools/virsh-domain.h (VIRSH_DOMAIN_H): Fix indentation.
* tools/virsh.h (VIRSH_H): Likewise.
---

Pushing under the build-breaker rule.

 cfg.mk               | 2 +-
 tools/virsh-domain.h | 2 +-
 tools/virsh.h        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index e9138a8..d2e54e3 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -727,7 +727,7 @@ $(srcdir)/src/remote/remote_client_bodies.h: $(srcdir)/src/remote/remote_protoco
 	$(MAKE) -C src remote/remote_client_bodies.h

 # List all syntax-check exemptions:
-exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.c$$
+exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.h$$

 _src1=libvirt|fdstream|qemu/qemu_monitor|util/(command|util)|xen/xend_internal|rpc/virnetsocket|lxc/lxc_controller
 exclude_file_name_regexp--sc_avoid_write = \
diff --git a/tools/virsh-domain.h b/tools/virsh-domain.h
index 797462f..b1b7930 100644
--- a/tools/virsh-domain.h
+++ b/tools/virsh-domain.h
@@ -24,7 +24,7 @@
  */

 #ifndef VIRSH_DOMAIN_H
-#define VIRSH_DOMAIN_H
+# define VIRSH_DOMAIN_H

 # include "virsh.h"

diff --git a/tools/virsh.h b/tools/virsh.h
index 69f37cc..0b1f123 100644
--- a/tools/virsh.h
+++ b/tools/virsh.h
@@ -23,7 +23,7 @@
  */

 #ifndef VIRSH_H
-#define VIRSH_H
+# define VIRSH_H

 # include <stdio.h>
 # include <stdlib.h>
-- 
1.7.11.4




More information about the libvir-list mailing list