Fix syntax-check failures wrt virsh

* cfg.mk: Whitelist virsh.h instead of virsh.c for strcasecmp check
* tools/virsh-domain.h, tools/virsh.h: Fix #define indentation
This commit is contained in:
Daniel P. Berrange 2012-08-20 11:17:26 +01:00
parent 6d96fab9cf
commit 2a336379e0
3 changed files with 3 additions and 3 deletions

2
cfg.mk
View File

@ -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 = \

View File

@ -24,7 +24,7 @@
*/
#ifndef VIRSH_DOMAIN_H
#define VIRSH_DOMAIN_H
# define VIRSH_DOMAIN_H
# include "virsh.h"

View File

@ -23,7 +23,7 @@
*/
#ifndef VIRSH_H
#define VIRSH_H
# define VIRSH_H
# include <stdio.h>
# include <stdlib.h>