Mark "failures" volatile to avoid a problem with sigsetjmp/siglongjmp.
authormillert <millert@openbsd.org>
Mon, 27 Sep 2021 19:33:58 +0000 (19:33 +0000)
committermillert <millert@openbsd.org>
Mon, 27 Sep 2021 19:33:58 +0000 (19:33 +0000)
commitde8b408b4a95a2ae89546dd6121ed480b94209bb
tree631bc8b7e92049ad3db7f10f8308a459bb85613c
parent4b1a398111101e99780024b22268964423a7f356
Mark "failures" volatile to avoid a problem with sigsetjmp/siglongjmp.
This makes the test pass on sparc64 where the compiler may otherwise
store the variable in the strlcpy/strlcat function's delay slot.
OK kettenis@
regress/lib/libc/strlcat/strlcattest.c
regress/lib/libc/strlcpy/strlcpytest.c