]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix syntax-check failures wrt virsh
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 10:17:26 +0000 (11:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 10:17:26 +0000 (11:17 +0100)
* cfg.mk: Whitelist virsh.h instead of virsh.c for strcasecmp check
* tools/virsh-domain.h, tools/virsh.h: Fix #define indentation

cfg.mk
tools/virsh-domain.h
tools/virsh.h

diff --git a/cfg.mk b/cfg.mk
index e9138a87f9352342a126223fbec607863d6c1a11..d2e54e374b2b52f1c60c6d3ee697bed23457cdb5 100644 (file)
--- 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 = \
index 797462fcbc1f1f9d75a8de1d97105b53d74945a2..b1b79304ed1636a88fdd09effaba3ef1f90a59d4 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #ifndef VIRSH_DOMAIN_H
-#define VIRSH_DOMAIN_H
+# define VIRSH_DOMAIN_H
 
 # include "virsh.h"
 
index 69f37cc4059b519f3f1d42c8edbf4496fa6e96de..0b1f1235e14cbcee05039a5c9a9987b174bf723d 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #ifndef VIRSH_H
-#define VIRSH_H
+# define VIRSH_H
 
 # include <stdio.h>
 # include <stdlib.h>