Skip to content

Commit 51414d6

Browse files
authored
Merge pull request #843 from JacobBarthelmeh/shadow
example max() conflicts with toolchains max() function
2 parents feb207a + 59a9227 commit 51414d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/portfwd/portfwd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
static const char defaultFwdFromHost[] = "0.0.0.0";
7373

7474

75-
static inline int max(int a, int b)
75+
static inline int findMax(int a, int b)
7676
{
7777
return (a > b) ? a : b;
7878
}
@@ -407,7 +407,7 @@ THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args)
407407
FD_ZERO(&templateFds);
408408
FD_SET(sshFd, &templateFds);
409409
FD_SET(listenFd, &templateFds);
410-
nFds = max(sshFd, listenFd) + 1;
410+
nFds = findMax(sshFd, listenFd) + 1;
411411

412412
for (;;) {
413413
rxFds = templateFds;

0 commit comments

Comments
 (0)