summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-05-02 02:53:38 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-05-02 02:53:38 +0000
commit70962d19f7d0d4398c78419471e128744335ad27 (patch)
tree54375bb6b14b7a64cb1253d3cdcbefd37ef978ab
parent6c1a079e6ffc844d5e487115b9f34f36fb47f77d (diff)
make the fuzzer seed const to make it clear that it is never modified
-rw-r--r--regress/usr.bin/ssh/unittests/test_helper/fuzz.c2
-rw-r--r--regress/usr.bin/ssh/unittests/test_helper/test_helper.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/unittests/test_helper/fuzz.c b/regress/usr.bin/ssh/unittests/test_helper/fuzz.c
index 4f14217d559..581ca5b29c1 100644
--- a/regress/usr.bin/ssh/unittests/test_helper/fuzz.c
+++ b/regress/usr.bin/ssh/unittests/test_helper/fuzz.c
@@ -168,7 +168,7 @@ fuzz_dump(struct fuzz *fuzz)
}
struct fuzz *
-fuzz_begin(u_int strategies, void *p, size_t l)
+fuzz_begin(u_int strategies, const void *p, size_t l)
{
struct fuzz *ret = calloc(sizeof(*ret), 1);
diff --git a/regress/usr.bin/ssh/unittests/test_helper/test_helper.h b/regress/usr.bin/ssh/unittests/test_helper/test_helper.h
index d93ab73ebf1..3a08d1a5ff2 100644
--- a/regress/usr.bin/ssh/unittests/test_helper/test_helper.h
+++ b/regress/usr.bin/ssh/unittests/test_helper/test_helper.h
@@ -268,7 +268,7 @@ struct fuzz;
#define FUZZ_MAX FUZZ_BASE64
/* Start fuzzing a blob of data with selected strategies (bitmask) */
-struct fuzz *fuzz_begin(u_int strategies, void *p, size_t l);
+struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l);
/* Free a fuzz context */
void fuzz_cleanup(struct fuzz *fuzz);