]> tinc-vpn.org Git - tinc/blobdiff - src/bsd/tunemu.h
Enable and fix many extra warnings supported by GCC and Clang.
[tinc] / src / bsd / tunemu.h
index 279e19764c2baa927bdd42baca2d7a86f17bfa2d..7dcd2d59b4a3d0d3595cb4759ceeba8f52288b3d 100644 (file)
 #ifndef TUNEMU_H
 #define TUNEMU_H
 
+#include "../system.h"
+
 typedef char tunemu_device[7];
 
 extern char tunemu_error[];
 
 int tunemu_open(tunemu_device dev);
 int tunemu_close(int fd);
-int tunemu_read(int fd, char *buffer, int length);
-int tunemu_write(char *buffer, int length);
+ssize_t tunemu_read(int fd, uint8_t *buffer, size_t buflen);
+ssize_t tunemu_write(uint8_t *buffer, size_t buflen);
 
 #endif