diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2005-10-21 13:30:31 +0100 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2005-10-21 13:30:31 +0100 |
commit | a04a1a1dc78ddbaceee558d0811f1fe9787b8c3d (patch) | |
tree | 6307ce9ad2617bca8522b858edf01eaa232de12b /tools/xenstore/xenstored_domain.c | |
parent | b625626aa74cd65892b8943f3fa35b9a6d5f5771 (diff) | |
download | xen-a04a1a1dc78ddbaceee558d0811f1fe9787b8c3d.tar.gz xen-a04a1a1dc78ddbaceee558d0811f1fe9787b8c3d.tar.bz2 xen-a04a1a1dc78ddbaceee558d0811f1fe9787b8c3d.zip |
Break proc paths out into separate include file, rather than inlining them.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/xenstore/xenstored_domain.c')
-rw-r--r-- | tools/xenstore/xenstored_domain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index fd2bbdf691..69e429ccfa 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -33,6 +33,7 @@ #include "talloc.h" #include "xenstored_core.h" #include "xenstored_domain.h" +#include "xenstored_proc.h" #include "xenstored_watch.h" #include "xenstored_test.h" @@ -449,7 +450,7 @@ static int dom0_init(void) char str[20]; struct domain *dom0; - fd = open("/proc/xen/xsd_mfn", O_RDONLY); + fd = open(XENSTORED_PROC_MFN, O_RDONLY); rc = read(fd, str, sizeof(str)); str[rc] = '\0'; @@ -457,7 +458,7 @@ static int dom0_init(void) close(fd); - fd = open("/proc/xen/xsd_port", O_RDONLY); + fd = open(XENSTORED_PROC_PORT, O_RDONLY); rc = read(fd, str, sizeof(str)); str[rc] = '\0'; |