diff options
| author | Manuel Mausz <manuel@mausz.at> | 2019-06-11 15:28:27 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2019-06-11 15:29:11 +0200 |
| commit | 692760720b197b46e8e4268bede8cad6f90399aa (patch) | |
| tree | 0d0d5f45759b83e15d6668357f9482dca236880b /substdio.h | |
| parent | 54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff) | |
| download | qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2 qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip | |
Fix compile warnings...
Diffstat (limited to 'substdio.h')
| -rw-r--r-- | substdio.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,12 +1,14 @@ | |||
| 1 | #ifndef SUBSTDIO_H | 1 | #ifndef SUBSTDIO_H |
| 2 | #define SUBSTDIO_H | 2 | #define SUBSTDIO_H |
| 3 | 3 | ||
| 4 | #include <unistd.h> | ||
| 5 | |||
| 4 | typedef struct substdio { | 6 | typedef struct substdio { |
| 5 | char *x; | 7 | char *x; |
| 6 | int p; | 8 | int p; |
| 7 | int n; | 9 | int n; |
| 8 | int fd; | 10 | int fd; |
| 9 | int (*op)(); | 11 | ssize_t (*op)(); |
| 10 | } substdio; | 12 | } substdio; |
| 11 | 13 | ||
| 12 | #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } | 14 | #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } |
