Skip to content

Commit b5da606

Browse files
committed
windows: Fix warnings
1 parent 3e6e3c5 commit b5da606

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tuntap-windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ formated_error(LPWSTR pMessage, DWORD m, ...) {
5353
LPWSTR pBuffer = NULL;
5454

5555
va_list args = NULL;
56-
va_start(args, pMessage);
56+
va_start(args, m);
5757

5858
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
5959
FORMAT_MESSAGE_ALLOCATE_BUFFER,

tuntap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ tuntap_set_ip(struct device *dev, const char *addr, int netmask) {
7070
t_tun_in_addr baddr4;
7171
t_tun_in6_addr baddr6;
7272
uint32_t mask;
73-
int errval;
7473

7574
/* Only accept started device */
7675
if (dev->tun_fd == TUNFD_INVALID_VALUE) {

0 commit comments

Comments
 (0)