prog: move ptrSize const to test

It is used only by a single test. Remove it from non-test code.
This commit is contained in:
Dmitry Vyukov 2017-09-04 19:52:54 +02:00
parent 2cf0659df1
commit a5c115a64b
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,6 @@ const (
const (
ExecBufferSize = 2 << 20
ptrSize = 8
pageSize = 4 << 10
dataOffset = 512 << 20
)

View File

@ -12,6 +12,8 @@ import (
"github.com/google/syzkaller/sys"
)
const ptrSize = 8
func TestSerializeForExecRandom(t *testing.T) {
rs, iters := initTest(t)
buf := make([]byte, ExecBufferSize)