mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 12:03:41 +01:00
* tests/test-async-sig.c: Move "const" definition to separate area to keep
things a bit neater looking. * tests/test-ptrace.c: Likewise. Signed-off-by: David Mosberger-Tang <dmosberger@gmail.com>
This commit is contained in:
parent
a72abd4e46
commit
5f3d29562d
2 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#define UNW_LOCAL_ONLY
|
#define UNW_LOCAL_ONLY
|
||||||
#include <libunwind.h>
|
#include <libunwind.h>
|
||||||
|
|
||||||
|
static const int nerrors_max = 100;
|
||||||
|
|
||||||
struct itimerval interval =
|
struct itimerval interval =
|
||||||
{
|
{
|
||||||
.it_interval = { .tv_sec = 0, .tv_usec = 0 },
|
.it_interval = { .tv_sec = 0, .tv_usec = 0 },
|
||||||
|
@ -41,7 +43,6 @@ struct itimerval interval =
|
||||||
|
|
||||||
int verbose;
|
int verbose;
|
||||||
int nerrors;
|
int nerrors;
|
||||||
static const int nerrors_max = 100;
|
|
||||||
int sigcount;
|
int sigcount;
|
||||||
|
|
||||||
#define panic(args...) \
|
#define panic(args...) \
|
||||||
|
|
|
@ -47,8 +47,9 @@ main (int argc, char **argv)
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
int nerrors;
|
|
||||||
static const int nerrors_max = 100;
|
static const int nerrors_max = 100;
|
||||||
|
|
||||||
|
int nerrors;
|
||||||
int verbose;
|
int verbose;
|
||||||
int print_names = 1;
|
int print_names = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue