提交 3337ba6d 编写于 作者: E Eric Blake

build: fix recent syntax-check breakage

The use of readlink() in lxc_container.c is intentional; we don't
want an absolute pathname there.

* src/util/cgroup.h (VIR_CGROUP_SYSFS_MOUNT): Indent properly.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_readlink): Add
exemption.
上级 2f5fdc88
...@@ -800,7 +800,8 @@ exclude_file_name_regexp--sc_prohibit_nonreentrant = \ ...@@ -800,7 +800,8 @@ exclude_file_name_regexp--sc_prohibit_nonreentrant = \
exclude_file_name_regexp--sc_prohibit_raw_allocation = \ exclude_file_name_regexp--sc_prohibit_raw_allocation = \
^(src/util/memory\.[ch]|examples/.*)$$ ^(src/util/memory\.[ch]|examples/.*)$$
exclude_file_name_regexp--sc_prohibit_readlink = ^src/util/util\.c$$ exclude_file_name_regexp--sc_prohibit_readlink = \
^(src/(util/util|lxc/lxc_container)\.c$$
exclude_file_name_regexp--sc_prohibit_setuid = ^src/util/util\.c$$ exclude_file_name_regexp--sc_prohibit_setuid = ^src/util/util\.c$$
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
struct virCgroup; struct virCgroup;
typedef struct virCgroup *virCgroupPtr; typedef struct virCgroup *virCgroupPtr;
#define VIR_CGROUP_SYSFS_MOUNT "/sys/fs/cgroup" # define VIR_CGROUP_SYSFS_MOUNT "/sys/fs/cgroup"
enum { enum {
VIR_CGROUP_CONTROLLER_CPU, VIR_CGROUP_CONTROLLER_CPU,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册