Kühl, scheint zu funktionieren, vielen Dank! Flicken selbst geschrieben oder aus dem CVS (ist für Zuse Voodoo) ausgegraben? Wem soll ich das Commit widmen?
In file included from buffer/buffer_0.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, char *, size_t)’ {aka ‘long int (*)(int, char *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
buffer/buffer_0.c:4:16: note: ‘b0read’ declared here
4 | static ssize_t b0read(int fd,char* buf, size_t len) {
| ^~~~~~
In file included from buffer/buffer_0small.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, char *, size_t)’ {aka ‘long int (*)(int, char *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0small.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)