logind: make id const, since it points into another buffer
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 10:40:52 +0000 (12:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 14:08:07 +0000 (16:08 +0200)
src/login/logind-inhibit.h

index c00578a..cea67a0 100644 (file)
@@ -29,7 +29,7 @@ struct Inhibitor {
 
         sd_event_source *event_source;
 
-        char *id;
+        const char *id;
         char *state_file;
 
         bool started;