From ad12431aaa4029fdf0fd517a9d094b26488f00ec Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 30 Jan 2019 11:59:09 +0100 Subject: [PATCH] formats: fix parentheses around char array expression --- lib/formats/csv.c | 2 +- lib/formats/villas_human.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/formats/csv.c b/lib/formats/csv.c index 9de170515..910c96510 100644 --- a/lib/formats/csv.c +++ b/lib/formats/csv.c @@ -121,7 +121,7 @@ static size_t csv_sscan_single(struct io *io, const char *buf, size_t len, struc if (sig->type == SIGNAL_TYPE_AUTO) { /* Find end of the current column */ - next = strpbrk(ptr, (char[]) { io->separator, io->delimiter, 0 }); + next = strpbrk(ptr, ((char[]) { io->separator, io->delimiter, 0 })); if (next == NULL) goto out; diff --git a/lib/formats/villas_human.c b/lib/formats/villas_human.c index 4c4fb6b07..929c93312 100644 --- a/lib/formats/villas_human.c +++ b/lib/formats/villas_human.c @@ -146,7 +146,7 @@ static size_t villas_human_sscan_single(struct io *io, const char *buf, size_t l if (sig->type == SIGNAL_TYPE_AUTO) { /* Find end of the current column */ - next = strpbrk(ptr, (char[]) { io->separator, io->delimiter, 0 }); + next = strpbrk(ptr, ((char[]) { io->separator, io->delimiter, 0 })); if (next == NULL) goto out;