diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-15 13:19:26 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-15 13:19:26 +0100 |
commit | 7eb8d34c180bf88522822ebd487747ad7353335a (patch) | |
tree | a1fa4d5eab79c5882ff6e57cb4f37a9a15ce54e0 /tools/xenstore/xenstored_core.c | |
parent | 533a2a2773f04d175bda34ea2f0202616b68be2b (diff) | |
download | xen-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.c | 17 |
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) { |