commit 4560672d3ba83fe38db757d2ebc4cd1437673ae7
parent 2cf4e93255e43082e777d1844cd711c5a93e3658
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Tue, 8 Oct 2013 22:10:28 +0200
Improve const-correctness
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/parse.c b/parse.c
@@ -2361,7 +2361,7 @@ keysym_dict_t nks_dict[] = {/*{{{*/
#endif
};/*}}}*/
-void load_config(char *config_file)
+void load_config(const char *config_file)
{
PRINTF("load configuration '%s'\n", config_file);
FILE *cfg = fopen(config_file, "r");
diff --git a/parse.h b/parse.h
@@ -55,7 +55,7 @@ struct chunk_t {
xcb_keysym_t Alt_L, Alt_R, Super_L, Super_R, Hyper_L, Hyper_R,
Meta_L, Meta_R, Mode_switch, Num_Lock, Scroll_Lock;
-void load_config(char *config_file);
+void load_config(const char *config_file);
void parse_event(xcb_generic_event_t *evt, uint8_t event_type, xcb_keysym_t *keysym, xcb_button_t *button, uint16_t *modfield);
void process_hotkey(char *hotkey_string, char *command_string);
char *get_token(char *dst, char *ign, char *src, char *sep);
diff --git a/sxhkd.c b/sxhkd.c
@@ -305,7 +305,7 @@ void hold(int sig)
bell = true;
}
-void put_status(char c, char *s)
+void put_status(char c, const char *s)
{
fprintf(status_fifo, "%c%s\n", c, s);
fflush(status_fifo);
diff --git a/sxhkd.h b/sxhkd.h
@@ -70,6 +70,6 @@ void setup(void);
void cleanup(void);
void reload_cmd(void);
void hold(int sig);
-void put_status(char c, char *s);
+void put_status(char c, const char *s);
#endif