diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-10-15 10:12:33 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-10-15 10:12:33 +0200 |
commit | 693fdcce6532efa77092d23e9754880671a0c8b2 (patch) | |
tree | 74de0933d3d24a892d228784cfe55dd5187e79b2 /tests | |
parent | 53a833d647a004623ccc517fe3eea377fd068b06 (diff) | |
download | profani-tty-693fdcce6532efa77092d23e9754880671a0c8b2.tar.gz |
functest: Make char const
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functionaltests/proftest.c | 10 | ||||
-rw-r--r-- | tests/functionaltests/proftest.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/functionaltests/proftest.c b/tests/functionaltests/proftest.c index c75a0611..ede555f2 100644 --- a/tests/functionaltests/proftest.c +++ b/tests/functionaltests/proftest.c @@ -23,7 +23,7 @@ char *data_orig; int fd = 0; gboolean -_create_dir(char *name) +_create_dir(const char *name) { struct stat sb; @@ -206,7 +206,7 @@ close_prof_test(void **state) } void -prof_input(char *input) +prof_input(const char *input) { GString *inp_str = g_string_new(input); g_string_append(inp_str, "\r"); @@ -215,19 +215,19 @@ prof_input(char *input) } int -prof_output_exact(char *text) +prof_output_exact(const char *text) { return (1 == exp_expectl(fd, exp_exact, text, 1, exp_end)); } int -prof_output_regex(char *text) +prof_output_regex(const char *text) { return (1 == exp_expectl(fd, exp_regexp, text, 1, exp_end)); } void -prof_connect_with_roster(char *roster) +prof_connect_with_roster(const char *roster) { GString *roster_str = g_string_new( "<iq type='result' to='stabber@localhost/profanity'>" diff --git a/tests/functionaltests/proftest.h b/tests/functionaltests/proftest.h index 5d06c74c..f650cdad 100644 --- a/tests/functionaltests/proftest.h +++ b/tests/functionaltests/proftest.h @@ -9,11 +9,11 @@ void close_prof_test(void **state); void prof_start(void); void prof_connect(void); -void prof_connect_with_roster(char *roster); -void prof_input(char *input); +void prof_connect_with_roster(const char *roster); +void prof_input(const char *input); -int prof_output_exact(char *text); -int prof_output_regex(char *text); +int prof_output_exact(const char *text); +int prof_output_regex(const char *text); void prof_timeout(int timeout); void prof_timeout_reset(void); |