summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-04-10 15:38:09 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-04-10 15:38:09 +0200
commit43d6810723ae64f597c17679357ae4a34f8498d1 (patch)
tree5bd93c9e1da9928d08e9b37cb8e99d439ceaf065
parent289b548310a8ade383fe898fcc0ff80686e4de14 (diff)
downloadratpoison-43d6810723ae64f597c17679357ae4a34f8498d1.zip
history_add: make 2nd parameter const
-rw-r--r--src/history.c2
-rw-r--r--src/history.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/history.c b/src/history.c
index 89c6699..82c94fe 100644
--- a/src/history.c
+++ b/src/history.c
@@ -162,7 +162,7 @@ history_add_upto (int history_id, const char *item, size_t max)
}
void
-history_add (int history_id, char *item)
+history_add (int history_id, const char *item)
{
history_add_upto (history_id, item, defaults.history_size);
}
diff --git a/src/history.h b/src/history.h
index f6b6dd9..308e212 100644
--- a/src/history.h
+++ b/src/history.h
@@ -33,7 +33,7 @@ void history_load (void);
void history_save (void);
void history_resize (int size);
void history_reset (void);
-void history_add (int, char *item);
+void history_add (int, const char *item);
const char *history_next (int);
const char *history_previous (int);
int history_expand_line (int, char *string, char **output);