[gtk/wip/otte/for-main: 1/6] testsuite: Make function arguments const




commit ce8faa2e904769aee7f609df00135cb2887615e2
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]