diff options
author | Philipp Klaus Krause <pkk@spth.de> | 2020-10-14 09:52:26 +0200 |
---|---|---|
committer | Philipp Klaus Krause <pkk@spth.de> | 2020-10-14 09:52:26 +0200 |
commit | 6a276e74e37b8843a58e85e836bfceee73d4effe (patch) | |
tree | 94ba532cfe65f45df33f8ad29fd88892c1e59948 /src/ui | |
parent | 72ce934b58889be3c091ab14d9a0879a54067d34 (diff) | |
download | profani-tty-6a276e74e37b8843a58e85e836bfceee73d4effe.tar.gz |
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/inputwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |