diff options
author | vhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com> | 2006-01-10 15:05:05 +0000 |
---|---|---|
committer | vhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com> | 2006-01-10 15:05:05 +0000 |
commit | e92fb45b06dd1b3d218ca4fb85a4dfc5168ffa5a (patch) | |
tree | c56288193dc288862f102d7f69bfa00e847174ca /tools/console | |
parent | 86bf018541a52e155de3f75936c902bc93c855e7 (diff) | |
download | xen-e92fb45b06dd1b3d218ca4fb85a4dfc5168ffa5a.tar.gz xen-e92fb45b06dd1b3d218ca4fb85a4dfc5168ffa5a.tar.bz2 xen-e92fb45b06dd1b3d218ca4fb85a4dfc5168ffa5a.zip |
Replace NULL xenbus transaction by a specific XBT_NULL value.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
Diffstat (limited to 'tools/console')
-rw-r--r-- | tools/console/client/main.c | 4 | ||||
-rw-r--r-- | tools/console/daemon/io.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/console/client/main.c b/tools/console/client/main.c index 0760f0cb9c..f500a593ad 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -220,7 +220,7 @@ int main(int argc, char **argv) if (path == NULL) err(ENOMEM, "realloc"); strcat(path, "/console/tty"); - str_pty = xs_read(xs, NULL, path, &len); + str_pty = xs_read(xs, XBT_NULL, path, &len); /* FIXME consoled currently does not assume domain-0 doesn't have a console which is good when we break domain-0 up. To keep us @@ -245,7 +245,7 @@ int main(int argc, char **argv) struct timeval tv = { 0, 500 }; select(0, NULL, NULL, NULL, &tv); /* pause briefly */ - str_pty = xs_read(xs, NULL, path, &len); + str_pty = xs_read(xs, XBT_NULL, path, &len); } if (str_pty == NULL) { diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 4587c5f7db..8b187e5e82 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -174,7 +174,7 @@ static int domain_create_tty(struct domain *dom) success = asprintf(&path, "%s/limit", dom->conspath) != -1; if (!success) goto out; - data = xs_read(xs, NULL, path, &len); + data = xs_read(xs, XBT_NULL, path, &len); if (data) { dom->buffer.max_capacity = strtoul(data, 0, 0); free(data); @@ -184,7 +184,7 @@ static int domain_create_tty(struct domain *dom) success = asprintf(&path, "%s/tty", dom->conspath) != -1; if (!success) goto out; - success = xs_write(xs, NULL, path, slave, strlen(slave)); + success = xs_write(xs, XBT_NULL, path, slave, strlen(slave)); free(path); if (!success) goto out; @@ -214,7 +214,7 @@ int xs_gather(struct xs_handle *xs, const char *dir, ...) char *p; asprintf(&path, "%s/%s", dir, name); - p = xs_read(xs, NULL, path, NULL); + p = xs_read(xs, XBT_NULL, path, NULL); free(path); if (p == NULL) { ret = ENOENT; |