]> granicus.if.org Git - strace/commit
tests/fcntl-common.c: define and initialize errstr
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 01:46:06 +0000 (01:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 01:46:06 +0000 (01:46 +0000)
commitb6542c5068979f8152bf75101f8394f8d4770e9c
treeba644d841628cc0f2020625cc6631838bb5f0612
parent419da8e231070555cadaef03c85f09c3f10b1a15
tests/fcntl-common.c: define and initialize errstr

Initialize errstr inside invoke_test_syscall so that its users
won't have to go into trouble of caring about clobbering errno.

* tests/fcntl-common.c (errstr): New variable.
(invoke_test_syscall): Initialize it.
(test_flock_einval, test_flock64_einval, test_flock,
test_f_owner_ex_type_pid): Use it.
* tests/fcntl.c (test_flock64_undecoded): Likewise.
* tests/fcntl64.c (test_flock64_lk64): Likewise.
tests/fcntl-common.c
tests/fcntl.c
tests/fcntl64.c