Skip to content

Commit

Permalink
Move Windows openconnect_setup_tun_fd() to tun-win32.c
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 13, 2014
1 parent 761832f commit d0ec3d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions tun-win32.c
Expand Up @@ -273,3 +273,8 @@ void os_shutdown_tun(struct openconnect_info *vpninfo)
CloseHandle(vpninfo->tun_rd_overlap.hEvent);
vpninfo->tun_rd_overlap.hEvent = NULL;
}

int openconnect_setup_tun_fd(struct openconnect_info *vpninfo, int tun_fd)
{
return 0;
}
7 changes: 1 addition & 6 deletions tun.c
Expand Up @@ -322,12 +322,7 @@ static int os_setup_tun(struct openconnect_info *vpninfo)
return tun_fd;
}

#ifdef _WIN32
int openconnect_setup_tun_fd(struct openconnect_info *vpninfo, int tun_fd)
{
return 0;
}
#else
#ifndef _WIN32
int openconnect_setup_tun_fd(struct openconnect_info *vpninfo, int tun_fd)
{
set_fd_cloexec(tun_fd);
Expand Down

0 comments on commit d0ec3d4

Please sign in to comment.