mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
functest: Make char const
This commit is contained in:
parent
53a833d647
commit
693fdcce65
@ -23,7 +23,7 @@ char *data_orig;
|
|||||||
int fd = 0;
|
int fd = 0;
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_create_dir(char *name)
|
_create_dir(const char *name)
|
||||||
{
|
{
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ close_prof_test(void **state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
prof_input(char *input)
|
prof_input(const char *input)
|
||||||
{
|
{
|
||||||
GString *inp_str = g_string_new(input);
|
GString *inp_str = g_string_new(input);
|
||||||
g_string_append(inp_str, "\r");
|
g_string_append(inp_str, "\r");
|
||||||
@ -215,19 +215,19 @@ prof_input(char *input)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
prof_output_exact(char *text)
|
prof_output_exact(const char *text)
|
||||||
{
|
{
|
||||||
return (1 == exp_expectl(fd, exp_exact, text, 1, exp_end));
|
return (1 == exp_expectl(fd, exp_exact, text, 1, exp_end));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
prof_output_regex(char *text)
|
prof_output_regex(const char *text)
|
||||||
{
|
{
|
||||||
return (1 == exp_expectl(fd, exp_regexp, text, 1, exp_end));
|
return (1 == exp_expectl(fd, exp_regexp, text, 1, exp_end));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
prof_connect_with_roster(char *roster)
|
prof_connect_with_roster(const char *roster)
|
||||||
{
|
{
|
||||||
GString *roster_str = g_string_new(
|
GString *roster_str = g_string_new(
|
||||||
"<iq type='result' to='stabber@localhost/profanity'>"
|
"<iq type='result' to='stabber@localhost/profanity'>"
|
||||||
|
@ -9,11 +9,11 @@ void close_prof_test(void **state);
|
|||||||
|
|
||||||
void prof_start(void);
|
void prof_start(void);
|
||||||
void prof_connect(void);
|
void prof_connect(void);
|
||||||
void prof_connect_with_roster(char *roster);
|
void prof_connect_with_roster(const char *roster);
|
||||||
void prof_input(char *input);
|
void prof_input(const char *input);
|
||||||
|
|
||||||
int prof_output_exact(char *text);
|
int prof_output_exact(const char *text);
|
||||||
int prof_output_regex(char *text);
|
int prof_output_regex(const char *text);
|
||||||
|
|
||||||
void prof_timeout(int timeout);
|
void prof_timeout(int timeout);
|
||||||
void prof_timeout_reset(void);
|
void prof_timeout_reset(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user