17
0
Files
python-dmidecode/gcc7-inline.patch
Matej Cepl 1d7e2932f5 - Update to version 3.12.2+git.1676426290.4fdb678:
* Fix dmi_cache_size_2 will add unit twice.
  * v3.12.3
  * Add defined BIGENDIAN in types.h
  * Solve dmi_memory_device_extended_size WORD issue
  * Add bus address for type 09 in pymap.xml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=38
2025-04-25 15:29:45 +00:00

25 lines
1.1 KiB
Diff

---
src/dmixml.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/src/dmixml.c
+++ b/src/dmixml.c
@@ -362,7 +362,7 @@ xmlNode *dmixml_FindNode(xmlNode *node,
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
-inline char *dmixml_GetContent(xmlNode *node) {
+char *dmixml_GetContent(xmlNode *node) {
// FIXME: Should find better way how to return UTF-8 data
return (((node != NULL) && (node->children != NULL)) ? (char *) node->children->content : NULL);
}
@@ -377,7 +377,7 @@ inline char *dmixml_GetContent(xmlNode *
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
-inline char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
+char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
return dmixml_GetContent(dmixml_FindNode(node, key));
}