summaryrefslogtreecommitdiff
path: root/media-libs/libid3tag/files/libid3tag-0.16.3-fix_c23.patch
blob: 5cc8448520b27fa80ad3c3167037513633b034b9 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
fix c23, patch from upstream
https://codeberg.org/tenacityteam/libid3tag/commit/bf4fed66ae44174c32936c0eb5c74ff29b0f4b33.patch
--- a/compat.c
+++ b/compat.c
@@ -88,9 +88,7 @@ inline
 #endif
 #endif
 static unsigned int
-hash (str, len)
-     register const char *str;
-     register unsigned int len;
+hash (register const char* str, register unsigned int len)
 {
   static const unsigned char asso_values[] =
     {
@@ -145,9 +143,7 @@ hash (str, len)
 __inline
 #endif
 const struct id3_compat *
-id3_compat_lookup (str, len)
-     register const char *str;
-     register size_t len;
+id3_compat_lookup(register const char *str, register size_t len)
 {
   static const struct id3_compat wordlist[] =
     {
--- a/frametype.c
+++ b/frametype.c
@@ -311,9 +311,7 @@ inline
 #endif
 #endif
 static unsigned int
-hash (str, len)
-     register const char *str;
-     register unsigned int len;
+hash(register const char *str, register unsigned int len)
 {
   static const unsigned char asso_values[] =
     {
@@ -351,9 +349,7 @@ hash (str, len)
 __inline
 #endif
 const struct id3_frametype *
-id3_frametype_lookup (str, len)
-     register const char *str;
-     register size_t len;
+id3_frametype_lookup(register const char *str, register size_t len)
 {
   static const struct id3_frametype wordlist[] =
     {