diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-10 15:38:09 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-10 15:38:09 +0200 |
commit | 43d6810723ae64f597c17679357ae4a34f8498d1 (patch) | |
tree | 5bd93c9e1da9928d08e9b37cb8e99d439ceaf065 | |
parent | 289b548310a8ade383fe898fcc0ff80686e4de14 (diff) | |
download | ratpoison-43d6810723ae64f597c17679357ae4a34f8498d1.zip |
history_add: make 2nd parameter const
-rw-r--r-- | src/history.c | 2 | ||||
-rw-r--r-- | src/history.h | 2 |
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); |