]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-failover: omit "restrict" optimization keyword
authorBjörn Baumbach <bb@sernet.de>
Tue, 2 Jul 2024 16:04:40 +0000 (18:04 +0200)
committerMartin Schwenke <martins@samba.org>
Tue, 2 Jul 2024 23:52:37 +0000 (23:52 +0000)
Fails with some compilers with

error: expected ';', ',' or ')' before 'lineptr'

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Jul  2 23:52:37 UTC 2024 on atb-devel-224

ctdb/failover/statd_callout.c

index 9a85cad7fe231ac76bd3aca9ab6c86ce03dbe8f7..2f703560b29e9960c81f31e3466357fd723e1cc0 100644 (file)
@@ -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;