summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Tvrdík <pawel.tvrdik@gmail.com>2016-03-09 16:48:28 +0100
committerPavel Tvrdík <pawel.tvrdik@gmail.com>2016-03-10 16:07:44 +0100
commit1a7daab126471374841e41de7f7e590ab22f35c8 (patch)
tree530b0bdc77984570081f9357bbaddef76b841258
parent43fd8fae526cbc62093a32bda572c93fa4055e98 (diff)
cf_error(char *msg, ...) -> cf_error(const char *msg, ...)
-rw-r--r--conf/conf.c2
-rw-r--r--conf/conf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 50e5944b..3fd10ad8 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -504,7 +504,7 @@ order_shutdown(void)
* error in the configuration.
*/
void
-cf_error(char *msg, ...)
+cf_error(const char *msg, ...)
{
char buf[1024];
va_list args;
diff --git a/conf/conf.h b/conf/conf.h
index 1c4f7fce..8e490c7b 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -68,7 +68,7 @@ int config_commit(struct config *, int type, int timeout);
int config_confirm(void);
int config_undo(void);
void config_init(void);
-void cf_error(char *msg, ...) NORET;
+void cf_error(const char *msg, ...) NORET;
void config_add_obstacle(struct config *);
void config_del_obstacle(struct config *);
void order_shutdown(void);