forked from pool/html-xml-utils
dtd.hash:117:1: error: conflicting types for ‘lookup_element’; have ‘const ElementType *(const char *, size_t)’ {aka ‘const struct _ElementType *(const char *, long unsigned int)’}
117 | link, 0, 1, 0, 1, 0, 0, 1, 0, {"head", NULL}
| ^~~~~~~~~~~~~~~~~~~~~~~
dtd.hash:46:28: note: previous declaration of ‘lookup_element’ with type ‘const ElementType *(void)’ {aka ‘const struct _ElementType *(void)’}
- Add basic check section.
OBS-URL: https://build.opensuse.org/package/show/utilities/html-xml-utils?expand=0&rev=22
13 lines
661 B
Diff
13 lines
661 B
Diff
--- html-xml-utils-8.7/dtd.c 2025-06-28 10:44:08.062000908 +0200
|
|
+++ html-xml-utils-8.7/dtd.c 2025-06-28 10:44:31.310766962 +0200
|
|
@@ -74,8 +74,7 @@
|
|
} ElementType;
|
|
|
|
/* lookup_element -- look up the string in the hash table */
|
|
-EXPORT const ElementType * lookup_element(/* register const char *str,
|
|
- register unsigned int len */);
|
|
+EXPORT const ElementType * lookup_element(register const char *str, register size_t len);
|
|
|
|
/* Different kinds of parent elements: */
|
|
#define PHRASE "abbr", "acronym", "b", "bdi", "bdo", "big", "cite", "code", "dfn", "em", "i", "kbd", "q", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "tt", "u", "var"
|