summaryrefslogtreecommitdiffstats
path: root/src/expression.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-03-06 16:29:52 +0100
committerPatrick McHardy <kaber@trash.net>2014-03-07 10:18:42 +0100
commite7b43ec0c9bc244795163478aa4c3e33750b5d64 (patch)
treed0ef691a19af2b717c0fe9dd239995eb4d5d2b9f /src/expression.c
parentb2c827223395682ee231504385f692267d1a3bfb (diff)
expr: make expr_binary_error() usable outside of evaluation
Turn the eval_ctx argument into a list_head to queue the error to. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/expression.c')
-rw-r--r--src/expression.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expression.c b/src/expression.c
index adaf6e78..cdc2b7b0 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -127,7 +127,7 @@ const struct datatype *expr_basetype(const struct expr *expr)
return type;
}
-int __fmtstring(4, 5) expr_binary_error(struct eval_ctx *ctx,
+int __fmtstring(4, 5) expr_binary_error(struct list_head *msgs,
const struct expr *e1, const struct expr *e2,
const char *fmt, ...)
{
@@ -139,7 +139,7 @@ int __fmtstring(4, 5) expr_binary_error(struct eval_ctx *ctx,
if (e2 != NULL)
erec_add_location(erec, &e2->location);
va_end(ap);
- erec_queue(erec, ctx->msgs);
+ erec_queue(erec, msgs);
return -1;
}