Commit 490d3dd9 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Constify value

parent 5948d5ad
......@@ -172,12 +172,12 @@ girara_config_load_default(girara_session_t* session)
}
/* values */
int statusbar_h_padding = 8;
int statusbar_v_padding = 2;
int window_width = 800;
int window_height = 600;
int n_completion_items = 15;
bool show_scrollbars = false;
const int statusbar_h_padding = 8;
const int statusbar_v_padding = 2;
const int window_width = 800;
const int window_height = 600;
const int n_completion_items = 15;
const bool show_scrollbars = false;
girara_mode_t normal_mode = session->modes.normal;
/* other values */
......
......@@ -66,7 +66,7 @@ girara_setting_set_value(girara_session_t* session, girara_setting_t* setting, c
}
bool
girara_setting_add(girara_session_t* session, const char* name, void* value, girara_setting_type_t type, bool init_only, const char* description, girara_setting_callback_t callback, void* data)
girara_setting_add(girara_session_t* session, const char* name, const void* value, girara_setting_type_t type, bool init_only, const char* description, girara_setting_callback_t callback, void* data)
{
g_return_val_if_fail(session != NULL, false);
g_return_val_if_fail(name != NULL, false);
......
......@@ -21,7 +21,7 @@
* @return FALSE An error occurred
*/
bool girara_setting_add(girara_session_t* session, const char* name,
void* value, girara_setting_type_t type, bool init_only,
const void* value, girara_setting_type_t type, bool init_only,
const char* description, girara_setting_callback_t callback, void* data) GIRARA_VISIBLE;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment