projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitHub CI: check project for warnings with clang/gcc.
[tinc]
/
src
/
bsd
/
device.c
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index
235f4ec
..
db506e5
100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-24,10
+24,7
@@
#include "../conf.h"
#include "../device.h"
#include "../logger.h"
#include "../conf.h"
#include "../device.h"
#include "../logger.h"
-#include "../names.h"
-#include "../net.h"
#include "../route.h"
#include "../route.h"
-#include "../utils.h"
#include "../xalloc.h"
#ifdef ENABLE_TUNEMU
#include "../xalloc.h"
#ifdef ENABLE_TUNEMU
@@
-503,7
+500,7
@@
static bool write_packet(vpn_packet_t *packet) {
#ifdef ENABLE_TUNEMU
case DEVICE_TYPE_TUNEMU:
#ifdef ENABLE_TUNEMU
case DEVICE_TYPE_TUNEMU:
- if(tunemu_write(
device_fd,
DATA(packet) + 14, packet->len - 14) < 0) {
+ if(tunemu_write(DATA(packet) + 14, packet->len - 14) < 0) {
logger(DEBUG_ALWAYS, LOG_ERR, "Error while writing to %s %s: %s", device_info,
device, strerror(errno));
return false;
logger(DEBUG_ALWAYS, LOG_ERR, "Error while writing to %s %s: %s", device_info,
device, strerror(errno));
return false;