about summary refs log tree commit diff stats
path: root/src/config
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/config
parent72ce934b58889be3c091ab14d9a0879a54067d34 (diff)
downloadprofani-tty-6a276e74e37b8843a58e85e836bfceee73d4effe.tar.gz
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'src/config')
-rw-r--r--src/config/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/scripts.c b/src/config/scripts.c
index ec34fdaf..22b3080c 100644
--- a/src/config/scripts.c
+++ b/src/config/scripts.c
@@ -58,7 +58,7 @@ scripts_init(void)
     errno = 0;
     int res = g_mkdir_with_parents(scriptsdir, S_IRWXU);
     if (res == -1) {
-        char* errmsg = strerror(errno);
+        const char* errmsg = strerror(errno);
         if (errmsg) {
             log_error("Error creating directory: %s, %s", scriptsdir, errmsg);
         } else {
d5a'>f421e1d ^
4aa2003 ^
3b4daca ^
4aa2003 ^

3b4daca ^
4aa2003 ^

3b4daca ^
f4235a1 ^

3b4daca ^
f4235a1 ^
4aa2003 ^



0fab1b4 ^
1326914 ^
3b4daca ^
a6ab7a2 ^

d441f8a ^
1326914 ^
d441f8a ^


1326914 ^
d441f8a ^


1326914 ^
d441f8a ^

3b4daca ^
1326914 ^
d441f8a ^

84875f3 ^



a6ab7a2 ^


















0fab1b4 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75