aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgp
diff options
context:
space:
mode:
authorPhilipp Klaus Krause <pkk@spth.de>2020-10-14 09:52:26 +0200
committerPhilipp Klaus Krause <pkk@spth.de>2020-10-14 09:52:26 +0200
commit6a276e74e37b8843a58e85e836bfceee73d4effe (patch)
tree94ba532cfe65f45df33f8ad29fd88892c1e59948 /src/pgp
parent72ce934b58889be3c091ab14d9a0879a54067d34 (diff)
downloadprofani-tty-6a276e74e37b8843a58e85e836bfceee73d4effe.tar.gz
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'src/pgp')
-rw-r--r--src/pgp/gpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c
index 7be1e5c9..1c2d2aca 100644
--- a/src/pgp/gpg.c
+++ b/src/pgp/gpg.c
@@ -167,7 +167,7 @@ p_gpg_on_connect(const char* const barejid)
errno = 0;
int res = g_mkdir_with_parents(pubsfile, S_IRWXU);
if (res == -1) {
- char* errmsg = strerror(errno);
+ const char* errmsg = strerror(errno);
if (errmsg) {
log_error("Error creating directory: %s, %s", pubsfile, errmsg);
} else {