From: Bing Xia Date: Sun, 19 Jan 2025 11:08:26 +0000 (+0000) Subject: rasdaemon: Fix some compilation alarms in ras-record.h. X-Git-Tag: v0.8.3~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a0cf58e6c96bb5e2646da9fd43e1ddd285a6e8da;p=users%2Fmchehab%2Frasdaemon.git rasdaemon: Fix some compilation alarms in ras-record.h. Fix the problem that the type of a constant string does not match when it is assigned to a character pointer. Signed-off-by: Bing Xia Signed-off-by: Shiju Jose Signed-off-by: Mauro Carvalho Chehab --- diff --git a/ras-record.h b/ras-record.h index 5eab62c..eec0702 100644 --- a/ras-record.h +++ b/ras-record.h @@ -318,12 +318,12 @@ struct sqlite3_priv { }; struct db_fields { - char *name; - char *type; + const char *name; + const char *type; }; struct db_table_descriptor { - char *name; + const char *name; const struct db_fields *fields; size_t num_fields; };