apps/examples/poll: Fix a few bit-rot compilation errors
This commit is contained in:
parent
1662fcff0b
commit
edd4e9a797
@ -1326,3 +1326,4 @@
|
||||
building with BINFS enabled (2015-06-18).
|
||||
* The apps/ directory has been removed from the NuttX GIT repository
|
||||
and now stands alone in its own repository (2015-06-27).
|
||||
* apps/examples/poll: Fix a few bit-rot compilation errors (2015-07-01).
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <apps/netutils/netlib.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* examples/poll/select_listener.c
|
||||
*
|
||||
* Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008, 2009, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -139,7 +139,7 @@ void *select_listener(pthread_addr_t pvarg)
|
||||
ready = true;
|
||||
}
|
||||
|
||||
if (!FD_ISSET(fd, rfds))
|
||||
if (!FD_ISSET(fd, &rfds))
|
||||
{
|
||||
printf("select_listener: ERROR fd=%d not in fd_set\n", fd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user