[gtk/wip/otte/json: 2/2] testsuite: Make function arguments const




commit 319c159446c149fd80e1fa8451c5eb2596ec40b1
Author: Benjamin Otte <otte redhat com>
Date:   Wed Nov 24 13:02:20 2021 +0100

    testsuite: Make function arguments const

 testsuite/testutils.c | 2 +-
 testsuite/testutils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/testutils.c b/testsuite/testutils.c
index 29df624cd9..d1776da7b5 100644
--- a/testsuite/testutils.c
+++ b/testsuite/testutils.c
@@ -30,7 +30,7 @@
 
 char *
 diff_with_file (const char  *file1,
-                char        *text,
+                const char  *text,
                 gssize       len,
                 GError     **error)
 {
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 7250ca6160..107d5e806c 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -1,7 +1,7 @@
 #pragma once
 
 char * diff_with_file (const char  *file1,
-                       char        *text,
+                       const char  *text,
                        gssize       len,
                        GError     **error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]