Displaying 2 results from an estimated 2 matches for "talloc_open".
2008 Jul 15
0
[PATCH][TOOLS] xenstore: cleanup
Hi!
Attached patch makes xenstore functions static which have no prototype
and removes unused talloc_open().
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registerge...
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...struct dirent *dirent;
node = canonicalize(conn, node);
- if (!check_node_perms(conn, node, XS_PERM_READ))
- return send_error(conn, errno);
+ if (!check_node_perms(conn, node, XS_PERM_READ)) {
+ send_error(conn, errno);
+ return;
+ }
path = node_dir(conn->transaction, node);
dir = talloc_opendir(path);
- if (!dir)
- return send_error(conn, errno);
+ if (!dir) {
+ send_error(conn, errno);
+ return;
+ }
while ((dirent = readdir(*dir)) != NULL) {
int len = strlen(dirent->d_name) + 1;
@@ -824,32 +826,35 @@
reply_len += len;
}
- return send_reply(conn, XS_DIRECTORY, reply...