From 62966b1d9f9e0e26ca130c307fce6afbcbe71832 Mon Sep 17 00:00:00 2001 From: jkim Date: Mon, 18 Aug 2008 21:40:03 +0000 Subject: [PATCH] Fix two test cases on 32-bit architectures. --- tools/regression/bpf/bpf_filter/tests/test0007.h | 4 +++- tools/regression/bpf/bpf_filter/tests/test0008.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/regression/bpf/bpf_filter/tests/test0007.h b/tools/regression/bpf/bpf_filter/tests/test0007.h index c2534806ad8a..d001ae1d4e5e 100644 --- a/tools/regression/bpf/bpf_filter/tests/test0007.h +++ b/tools/regression/bpf/bpf_filter/tests/test0007.h @@ -11,7 +11,9 @@ struct bpf_insn pc[] = { }; /* Packet */ -u_char pkt[0xdeadc0de]; +u_char pkt[] = { + 0x00, +}; /* Packet length seen on wire */ u_int wirelen = 0xdeadc0de; diff --git a/tools/regression/bpf/bpf_filter/tests/test0008.h b/tools/regression/bpf/bpf_filter/tests/test0008.h index 432eaaa69ea8..8c1a5bf6962e 100644 --- a/tools/regression/bpf/bpf_filter/tests/test0008.h +++ b/tools/regression/bpf/bpf_filter/tests/test0008.h @@ -12,7 +12,9 @@ struct bpf_insn pc[] = { }; /* Packet */ -u_char pkt[0xdeadc0de]; +u_char pkt[] = { + 0x00, +}; /* Packet length seen on wire */ u_int wirelen = 0xdeadc0de;