File: fix_gcc10.patch

package info (click to toggle)
libowfat 0.32-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,544 kB
  • sloc: ansic: 17,551; makefile: 14
file content (28 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (3)
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
Description: Fix FTBFS with gcc-10

---

--- libowfat-0.30.orig/buffer/buffer_0small.c
+++ libowfat-0.30/buffer/buffer_0small.c
@@ -6,7 +6,7 @@ static ssize_t b0read(int fd,char* buf,
   return read(fd,buf,len);
 }
 
-char buffer_0_space[128];
-static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
+char buffer_0small_space[128];
+static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0small_space,sizeof buffer_0small_space);
 buffer *buffer_0small = ⁢
 
--- libowfat-0.30.orig/buffer/buffer_1small.c
+++ libowfat-0.30/buffer/buffer_1small.c
@@ -1,7 +1,7 @@
 #include <unistd.h>
 #include "buffer.h"
 
-char buffer_1_space[128];
-static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
+char buffer_1small_space[128];
+static buffer it = BUFFER_INIT(write,1,buffer_1small_space,sizeof buffer_1small_space);
 buffer *buffer_1small = &it;