lib:util: Fix parameter aliasing in tfork test
commit05dab794c2f15701f5ecb3909e4fa714b74c16c8
authorAndreas Schneider <asn@samba.org>
Wed, 9 May 2018 15:52:19 +0000 (9 17:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Jun 2018 07:22:24 +0000 (20 09:22 +0200)
tree25c9e05e21823746b08f02451e52add13e62e014
parentca1acededa6905927c7768e1a33bee5358013ebe
lib:util: Fix parameter aliasing in tfork test

../lib/util/tests/tfork.c:483:24: error: passing argument 1 to
    restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
   ret = pthread_create(&threads[i],
                        ^~~~~~~~~~~
../lib/util/tests/tfork.c:486:10:
          (void *)&threads[i]);
          ~~~~~~~~~~~~~~~~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 6f06a0154f5769cb85f6e189eecd78cd7805090a)
lib/util/tests/tfork.c