From: Lennart Poettering Date: Tue, 23 Jul 2019 10:40:52 +0000 (+0200) Subject: logind: make id const, since it points into another buffer X-Git-Tag: v243-rc1~56^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f18eda8ffa5d60176f0cb9251dc85e708bedd0d;p=thirdparty%2Fsystemd.git logind: make id const, since it points into another buffer --- diff --git a/src/login/logind-inhibit.h b/src/login/logind-inhibit.h index c00578a86e7..cea67a08c59 100644 --- a/src/login/logind-inhibit.h +++ b/src/login/logind-inhibit.h @@ -29,7 +29,7 @@ struct Inhibitor { sd_event_source *event_source; - char *id; + const char *id; char *state_file; bool started;