mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 17:36:22 +00:00
Since the string from strerror should never be modified, use const.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user