File: toolcommon-fix-gcc15-compilation-error.patch

package info (click to toggle)
freeipmi 1.6.15-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,600 kB
  • sloc: ansic: 318,860; sh: 4,648; makefile: 2,090; perl: 1,078
file content (30 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Albert Chu <chu11@llnl.gov>
Date: Thu, 20 Feb 2025 12:16:59 -0800
Subject: toolcommon: fix gcc15 compilation error

---
 common/toolcommon/tool-config-file-common.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/toolcommon/tool-config-file-common.c b/common/toolcommon/tool-config-file-common.c
index 609e7a3..20dfad5 100644
--- a/common/toolcommon/tool-config-file-common.c
+++ b/common/toolcommon/tool-config-file-common.c
@@ -78,14 +78,14 @@ _config_file_bool (conffile_t cf,
                    void *app_ptr,
                    int app_data)
 {
-  int *bool;
+  int *value;
 
   assert (data);
   assert (optionname);
   assert (option_ptr);
 
-  bool = (int *)option_ptr;
-  *bool = data->boolval;
+  value = (int *)option_ptr;
+  *value = data->boolval;
   return (0);
 }