[libvirt] [PATCH] fix make syntak error

Wen Congyang wency at cn.fujitsu.com
Mon Aug 20 08:11:14 UTC 2012


We move the macro vshStrcasecmp from tools/virsh.c to tools/virsh.h
after commit c2e494cc, so we should not check strcase* in the file
tools/virsh.h.

Some macros are not properly indented in the file tools/virsh.h
and tools/virsh-domain.h. This patch also fixes this problem.

---
 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.1




More information about the libvir-list mailing list