diff options
author | Wei Liu <liuw@liuw.name> | 2011-07-19 16:02:36 +0100 |
---|---|---|
committer | Wei Liu <liuw@liuw.name> | 2011-07-19 16:02:36 +0100 |
commit | 1b86994afeb2a7f751fc3d01a83573d7a002db0c (patch) | |
tree | eabe62c18b1d8711204f5286ef5f101c4495aa1d /tools/libxl/libxl_flask.c | |
parent | b2c448b55c7f31c9b18a02630cc6c9852afdfebc (diff) | |
download | xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.tar.gz xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.tar.bz2 xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.zip |
libxl: clean up trailing whitespaces in code.
Commit exactly the results of running
find \! -iname '*.txt' -type f -print0 | xargs -0 perl -p -i.bak -E 's/\s+\n/\n/'
Signed-off-by: Wei Liu <liuw@liuw.name>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_flask.c')
-rw-r--r-- | tools/libxl/libxl_flask.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/libxl/libxl_flask.c b/tools/libxl/libxl_flask.c index a5d0b8a4ce..8e0eb73818 100644 --- a/tools/libxl/libxl_flask.c +++ b/tools/libxl/libxl_flask.c @@ -22,23 +22,23 @@ int libxl_flask_context_to_sid(libxl_ctx *ctx, char *buf, size_t len, int rc; rc = xc_flask_context_to_sid(ctx->xch, buf, len, ssidref); - + return rc; } -int libxl_flask_sid_to_context(libxl_ctx *ctx, uint32_t ssidref, +int libxl_flask_sid_to_context(libxl_ctx *ctx, uint32_t ssidref, char **buf, size_t *len) { int rc; char tmp[XC_PAGE_SIZE]; rc = xc_flask_sid_to_context(ctx->xch, ssidref, tmp, sizeof(tmp)); - + if (!rc) { *len = strlen(tmp); - *buf = strdup(tmp); + *buf = strdup(tmp); } - + return rc; } @@ -48,7 +48,7 @@ int libxl_flask_getenforce(libxl_ctx *ctx) rc = xc_flask_getenforce(ctx->xch); - return rc; + return rc; } int libxl_flask_setenforce(libxl_ctx *ctx, int mode) |