hmac: Make unit test const-correct
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 19 Feb 2014 18:03:37 +0000 (18:03 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 24 Feb 2014 16:38:08 +0000 (16:38 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=724741

glib/tests/hmac.c

index f6ee643..2a434db 100644 (file)
@@ -156,11 +156,11 @@ guint8 result_sha1_test7[] = {
 
 typedef struct {
   GChecksumType digest_type;
-  gpointer key;
+  gconstpointer key;
   gsize key_len;
-  gpointer data;
+  gconstpointer data;
   gsize data_len;
-  gpointer result;
+  gconstpointer result;
 } HmacCase;
 
 HmacCase hmac_md5_tests[] = {