diff --git a/commands.c b/commands.c index 5e053a4..d431b07 100644 --- a/commands.c +++ b/commands.c @@ -270,7 +270,7 @@ cmd_savef(girara_session_t* session, girara_list_t* argument_list) } bool -cmd_search(girara_session_t* session, char* input, girara_argument_t* argument) +cmd_search(girara_session_t* session, const char* input, girara_argument_t* argument) { g_return_val_if_fail(session != NULL, false); g_return_val_if_fail(input != NULL, false); diff --git a/commands.h b/commands.h index 75cf885..4318430 100644 --- a/commands.h +++ b/commands.h @@ -104,6 +104,6 @@ bool cmd_savef(girara_session_t* session, girara_list_t* argument_list); * @param argument Passed argument * @return true if no error occured */ -bool cmd_search(girara_session_t* session, char* input, girara_argument_t* argument); +bool cmd_search(girara_session_t* session, const char* input, girara_argument_t* argument); #endif // COMMANDS_H