From: Andre Noll Date: Sun, 13 May 2018 10:51:00 +0000 (+0200) Subject: txt2ast(): Mark iovec structure as const. X-Git-Tag: v1.0.1~19 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b4aae30257e0822ee2229cd761d8c50a8d54748e;p=tfortune.git txt2ast(): Mark iovec structure as const. The function does not modify the fields of "tx". --- 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;