From b69817449315f3818a8472468b3328ea755819db Mon Sep 17 00:00:00 2001 From: Emilia Kasper Date: Mon, 1 Feb 2016 15:26:18 +0100 Subject: constify PACKET PACKET contents should be read-only. To achieve this, also - constify two user callbacks - constify BUF_reverse. Reviewed-by: Rich Salz --- test/packettest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/packettest.c') diff --git a/test/packettest.c b/test/packettest.c index bec780f5bf..0555c7be74 100644 --- a/test/packettest.c +++ b/test/packettest.c @@ -197,7 +197,7 @@ static int test_PACKET_get_sub_packet(unsigned char buf[BUF_LEN]) static int test_PACKET_get_bytes(unsigned char buf[BUF_LEN]) { - unsigned char *bytes; + const unsigned char *bytes; PACKET pkt; if ( !PACKET_buf_init(&pkt, buf, BUF_LEN) @@ -310,7 +310,7 @@ static int test_PACKET_strndup() static int test_PACKET_forward(unsigned char buf[BUF_LEN]) { - unsigned char *byte; + const unsigned char *byte; PACKET pkt; if ( !PACKET_buf_init(&pkt, buf, BUF_LEN) -- cgit v1.2.3