lib:util: Fix parameter aliasing in tfork test
authorAndreas Schneider <asn@samba.org>
Wed, 9 May 2018 15:52:19 +0000 (17:52 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 17 May 2018 15:30:09 +0000 (17:30 +0200)
commit6f06a0154f5769cb85f6e189eecd78cd7805090a
treedef97ce4d59d83743185914922fa40da5e44e466
parent6b728b87bf5726f14100d76956c3df3fd9bb1058
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>
lib/util/tests/tfork.c