Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/portfwd/portfwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
static const char defaultFwdFromHost[] = "0.0.0.0";


static inline int max(int a, int b)
static inline int findMax(int a, int b)
{
return (a > b) ? a : b;
}
Expand Down Expand Up @@ -407,7 +407,7 @@ THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args)
FD_ZERO(&templateFds);
FD_SET(sshFd, &templateFds);
FD_SET(listenFd, &templateFds);
nFds = max(sshFd, listenFd) + 1;
nFds = findMax(sshFd, listenFd) + 1;

for (;;) {
rxFds = templateFds;
Expand Down