aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlu_cfg.c
diff options
context:
space:
mode:
authorWei Liu <liuw@liuw.name>2011-07-19 16:02:36 +0100
committerWei Liu <liuw@liuw.name>2011-07-19 16:02:36 +0100
commit1b86994afeb2a7f751fc3d01a83573d7a002db0c (patch)
treeeabe62c18b1d8711204f5286ef5f101c4495aa1d /tools/libxl/libxlu_cfg.c
parentb2c448b55c7f31c9b18a02630cc6c9852afdfebc (diff)
downloadxen-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/libxlu_cfg.c')
-rw-r--r--tools/libxl/libxlu_cfg.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/libxl/libxlu_cfg.c b/tools/libxl/libxlu_cfg.c
index a8959401ae..cb95283bdc 100644
--- a/tools/libxl/libxlu_cfg.c
+++ b/tools/libxl/libxlu_cfg.c
@@ -45,7 +45,7 @@ static int ctx_prep(CfgParseContext *ctx, XLU_Config *cfg) {
ctx->lexerrlineno= -1;
ctx->likely_python= 0;
ctx->scanner= 0;
-
+
e= xlu__cfg_yylex_init_extra(ctx, &ctx->scanner);
if (e) {
fprintf(cfg->report,"%s: unable to create scanner: %s\n",
@@ -191,7 +191,7 @@ int xlu_cfg_get_string(const XLU_Config *cfg, const char *n,
*value_r= set->values[0];
return 0;
}
-
+
int xlu_cfg_replace_string(const XLU_Config *cfg, const char *n,
char **value_r) {
XLU_ConfigSetting *set;
@@ -231,7 +231,7 @@ int xlu_cfg_get_long(const XLU_Config *cfg, const char *n,
*value_r= l;
return 0;
}
-
+
int xlu_cfg_get_list(const XLU_Config *cfg, const char *n,
XLU_ConfigList **list_r, int *entries_r, int dont_warn) {
@@ -269,7 +269,7 @@ XLU_ConfigSetting *xlu__cfg_set_mk(CfgParseContext *ctx,
set->name= 0; /* tbd */
set->avalues= alloc;
-
+
if (!alloc) {
set->nvalues= 0;
set->values= 0;
@@ -295,11 +295,11 @@ void xlu__cfg_set_add(CfgParseContext *ctx, XLU_ConfigSetting *set,
if (ctx->err) return;
assert(atom);
-
+
if (set->nvalues >= set->avalues) {
int new_avalues;
char **new_values;
-
+
if (set->avalues > INT_MAX / 100) { ctx->err= ERANGE; return; }
new_avalues= set->avalues * 4;
new_values= realloc(set->values,
@@ -324,7 +324,7 @@ void xlu__cfg_set_store(CfgParseContext *ctx, char *name,
char *xlu__cfgl_strdup(CfgParseContext *ctx, const char *src) {
char *result;
-
+
if (ctx->err) return 0;
result= strdup(src);
if (!result) ctx->err= errno;
@@ -380,7 +380,7 @@ char *xlu__cfgl_dequote(CfgParseContext *ctx, const char *src) {
goto x; \
} \
p += (ep - numbuf); \
- }while(0)
+ }while(0)
p++;
NUMERIC_CHAR(2,2,16,"hex");