]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: Fix some compilation alarms in ras-record.h.
authorBing Xia <xiabing14@h-partners.com>
Sun, 19 Jan 2025 11:08:26 +0000 (11:08 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:28:00 +0000 (11:28 +0100)
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 <xiabing14@h-partners.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-record.h

index 5eab62c7f5824ece71411e7182c6c0bfc962ef18..eec070276e3ecedc32471136ae93242d039ecd54 100644 (file)
@@ -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;
 };