Skip to content

Commit e3e48c2

Browse files
committed
Don’t use inline keyword.
Again, I am a Pythonista, just recording exisitng SUSE patches, so I miss a lot of intricacies of GCC keywords, but it seems from many sources (https://bugs.launchpad.net/flashlight-firmware/+bug/1703250, https://www.kernel.org/doc/local/inline.html) that `inline` keyword is frowned upon.
1 parent 9ec2b11 commit e3e48c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dmixml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ xmlNode *dmixml_FindNode(xmlNode *node, const char *key) {
362362
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
363363
* must NOT be freed, as it points directly into the value in the XML document.
364364
*/
365-
inline char *dmixml_GetContent(xmlNode *node) {
365+
char *dmixml_GetContent(xmlNode *node) {
366366
// FIXME: Should find better way how to return UTF-8 data
367367
return (((node != NULL) && (node->children != NULL)) ? (char *) node->children->content : NULL);
368368
}
@@ -377,7 +377,7 @@ inline char *dmixml_GetContent(xmlNode *node) {
377377
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
378378
* must NOT be freed, as it points directly into the value in the XML document.
379379
*/
380-
inline char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
380+
char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
381381
return dmixml_GetContent(dmixml_FindNode(node, key));
382382
}
383383

0 commit comments

Comments
 (0)