Skip to content

Commit

Permalink
windows: Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chipot committed Jan 4, 2024
1 parent 3e6e3c5 commit b5da606
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tuntap-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ formated_error(LPWSTR pMessage, DWORD m, ...) {
LPWSTR pBuffer = NULL;

va_list args = NULL;
va_start(args, pMessage);
va_start(args, m);

FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_ALLOCATE_BUFFER,
Expand Down
1 change: 0 additions & 1 deletion tuntap.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ tuntap_set_ip(struct device *dev, const char *addr, int netmask) {
t_tun_in_addr baddr4;
t_tun_in6_addr baddr6;
uint32_t mask;
int errval;

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

0 comments on commit b5da606

Please sign in to comment.