rasdaemon/0001-rasdaemon-Fix-some-compilation-alarms-in-ras-record..patch

39 lines
1023 B
Diff

From a0cf58e6c96bb5e2646da9fd43e1ddd285a6e8da Mon Sep 17 00:00:00 2001
From: Bing Xia <xiabing14@h-partners.com>
Date: Sun, 19 Jan 2025 11:08:26 +0000
Subject: [PATCH 1/4] 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 <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 | 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.25.1