Since the string from strerror should never be modified, use const.

This commit is contained in:
Philipp Klaus Krause
2020-10-14 09:52:26 +02:00
parent 72ce934b58
commit 6a276e74e3
6 changed files with 6 additions and 6 deletions

View File

@@ -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;