From 6a276e74e37b8843a58e85e836bfceee73d4effe Mon Sep 17 00:00:00 2001 From: Philipp Klaus Krause Date: Wed, 14 Oct 2020 09:52:26 +0200 Subject: Since the string from strerror should never be modified, use const. --- src/ui/inputwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 5da6ae97..d4feee27 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -172,7 +172,7 @@ inp_readline(void) pthread_mutex_lock(&lock); if (r < 0) { if (errno != EINTR) { - char* err_msg = strerror(errno); + const char* err_msg = strerror(errno); log_error("Readline failed: %s", err_msg); } return NULL; -- cgit 1.4.1-2-gfad0