From: Kirill Isakov Date: Fri, 30 Jul 2021 05:53:37 +0000 (+0600) Subject: Remove unused argument from tunemu_write. X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=8156f3760973c17256a93ab48016b8b84f5444de;p=tinc Remove unused argument from tunemu_write. --- diff --git a/src/bsd/device.c b/src/bsd/device.c index efe17d1a..db506e5a 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -500,7 +500,7 @@ static bool write_packet(vpn_packet_t *packet) { #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; diff --git a/src/bsd/tunemu.c b/src/bsd/tunemu.c index 2248264d..bf3eacb5 100644 --- a/src/bsd/tunemu.c +++ b/src/bsd/tunemu.c @@ -343,7 +343,7 @@ int tunemu_read(int ppp_sockfd, char *buffer, int length) { return length; } -int tunemu_write(int ppp_sockfd, char *buffer, int length) { +int tunemu_write(char *buffer, int length) { allocate_data_buffer(length + 4); data_buffer[0] = 0x02; diff --git a/src/bsd/tunemu.h b/src/bsd/tunemu.h index e0452a8b..279e1976 100644 --- a/src/bsd/tunemu.h +++ b/src/bsd/tunemu.h @@ -27,6 +27,6 @@ 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(int fd, char *buffer, int length); +int tunemu_write(char *buffer, int length); #endif