aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/args.c2
-rw-r--r--src/calcurse.h6
-rw-r--r--src/io.c4
-rw-r--r--src/utils.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/args.c b/src/args.c
index ad27235..a846095 100644
--- a/src/args.c
+++ b/src/args.c
@@ -204,7 +204,7 @@ todo_arg (int priority, const char *format, regex_t *regex)
{
llist_item_t *i;
int title = 1;
- char *titlestr;
+ const char *titlestr;
const char *all_todos_title = _("to do:\n");
const char *completed_title = _("completed tasks:\n");
diff --git a/src/calcurse.h b/src/calcurse.h
index d77c827..238d8b3 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -708,8 +708,8 @@ void io_export_data (enum export_type);
void io_export_bar (void);
void io_import_data (enum import_type, char *);
struct io_file *io_log_init (void);
-void io_log_print (struct io_file *, int, char *);
-void io_log_display (struct io_file *, char *, char *);
+void io_log_print (struct io_file *, int, const char *);
+void io_log_display (struct io_file *, const char *, char *);
void io_log_free (struct io_file *);
void io_start_psave_thread (void);
void io_stop_psave_thread (void);
@@ -894,7 +894,7 @@ void exit_calcurse (int) __attribute__((__noreturn__));
void free_user_data (void);
void fatalbox (const char *);
void warnbox (const char *);
-void status_mesg (char *, char *);
+void status_mesg (const char *, const char *);
void erase_window_part (WINDOW *, int, int, int, int);
WINDOW *popup (int, int, int, int, char *, char *, int);
void print_in_middle (WINDOW *, int, int, int, const char *);
diff --git a/src/io.c b/src/io.c
index cd43d68..d1d2f44 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1230,14 +1230,14 @@ io_log_init (void)
}
void
-io_log_print (struct io_file *log, int line, char *msg)
+io_log_print (struct io_file *log, int line, const char *msg)
{
if (log && log->fd)
fprintf (log->fd, "line %d: %s\n", line, msg);
}
void
-io_log_display (struct io_file *log, char *msg, char *pager)
+io_log_display (struct io_file *log, const char *msg, char *pager)
{
char *choices = "[y/n] ";
int ans;
diff --git a/src/utils.c b/src/utils.c
index 763d49b..3ee24e0 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -160,7 +160,7 @@ warnbox (const char *msg)
* Message texts for first line and second line are to be provided.
*/
void
-status_mesg (char *mesg_line1, char *mesg_line2)
+status_mesg (const char *mesg_line1, const char *mesg_line2)
{
wins_erase_status_bar ();
custom_apply_attr (win[STA].p, ATTR_HIGHEST);