aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_core.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-15 13:19:26 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-15 13:19:26 +0100
commit7eb8d34c180bf88522822ebd487747ad7353335a (patch)
treea1fa4d5eab79c5882ff6e57cb4f37a9a15ce54e0 /tools/xenstore/xenstored_core.c
parent533a2a2773f04d175bda34ea2f0202616b68be2b (diff)
downloadxen-7eb8d34c180bf88522822ebd487747ad7353335a.tar.gz
xen-7eb8d34c180bf88522822ebd487747ad7353335a.tar.bz2
xen-7eb8d34c180bf88522822ebd487747ad7353335a.zip
tools: Declare functions static where they should be, and provide
proper prototypes for others as required. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/xenstore/xenstored_core.c')
-rw-r--r--tools/xenstore/xenstored_core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
index b391319a15..90bfd05b91 100644
--- a/tools/xenstore/xenstored_core.c
+++ b/tools/xenstore/xenstored_core.c
@@ -349,23 +349,6 @@ static int destroy_fd(void *_fd)
return 0;
}
-/* Return a pointer to an fd, self-closing and attached to this pathname. */
-int *talloc_open(const char *pathname, int flags, int mode)
-{
- int *fd;
-
- fd = talloc(pathname, int);
- *fd = open(pathname, flags, mode);
- if (*fd < 0) {
- int saved_errno = errno;
- talloc_free(fd);
- errno = saved_errno;
- return NULL;
- }
- talloc_set_destructor(fd, destroy_fd);
- return fd;
-}
-
/* Is child a subnode of parent, or equal? */
bool is_child(const char *child, const char *parent)
{