From: Björn Baumbach Date: Tue, 2 Jul 2024 16:04:40 +0000 (+0200) Subject: ctdb-failover: omit "restrict" optimization keyword X-Git-Tag: tdb-1.4.11~217 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=056dd415ddad4ebdb73acb531dd339a03ca8ce51;p=thirdparty%2Fsamba.git ctdb-failover: omit "restrict" optimization keyword Fails with some compilers with error: expected ';', ',' or ')' before 'lineptr' Signed-off-by: Björn Baumbach Reviewed-by: Volker Lendecke Reviewed-by: Douglas Bagnall Reviewed-by: Jo Sutton Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue Jul 2 23:52:37 UTC 2024 on atb-devel-224 --- diff --git a/ctdb/failover/statd_callout.c b/ctdb/failover/statd_callout.c index 9a85cad7fe2..2f703560b29 100644 --- a/ctdb/failover/statd_callout.c +++ b/ctdb/failover/statd_callout.c @@ -55,9 +55,9 @@ struct { }; } config; -static bool getline_strip(char **restrict lineptr, +static bool getline_strip(char **lineptr, size_t *n, - FILE *restrict stream) + FILE *stream) { bool was_null; int ret;