testsuite: Make function arguments const
authorBenjamin Otte <otte@redhat.com>
Wed, 24 Nov 2021 12:02:20 +0000 (13:02 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 30 Nov 2021 13:12:10 +0000 (14:12 +0100)
testsuite/testutils.c
testsuite/testutils.h

index 29df624cd97c1ba1611f11ba190a2a2904a395f0..d1776da7b548ffcc91abfe5f7c9ae737b20ebfdf 100644 (file)
@@ -30,7 +30,7 @@
 
 char *
 diff_with_file (const char  *file1,
-                char        *text,
+                const char  *text,
                 gssize       len,
                 GError     **error)
 {
index 7250ca61608d3331b25c8eb335c58c577f906d8d..107d5e806c9513e47c3c4d7545921e9a1dfa1e99 100644 (file)
@@ -1,7 +1,7 @@
 #pragma once
 
 char * diff_with_file (const char  *file1,
-                       char        *text,
+                       const char  *text,
                        gssize       len,
                        GError     **error);