From a0cf58e6c96bb5e2646da9fd43e1ddd285a6e8da Mon Sep 17 00:00:00 2001 From: Bing Xia Date: Sun, 19 Jan 2025 11:08:26 +0000 Subject: [PATCH] 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 --- ras-record.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }; -- 2.50.1