From b4aae30257e0822ee2229cd761d8c50a8d54748e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 13 May 2018 12:51:00 +0200 Subject: [PATCH] txt2ast(): Mark iovec structure as const. The function does not modify the fields of "tx". --- tfortune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfortune.c b/tfortune.c index e5b2061..7e59eb6 100644 --- a/tfortune.c +++ b/tfortune.c @@ -216,7 +216,7 @@ static int read_tag_expression(struct iovec *result) return ret; } -static int tx2ast(struct iovec *tx, struct txp_context **ast) +static int tx2ast(const struct iovec *tx, struct txp_context **ast) { int ret; char *errmsg; -- 2.39.5