diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-11 12:30:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-11 12:30:23 -0600 |
commit | 8afce11c793cef769c327f81616f417b9d758569 (patch) | |
tree | b55b1318c106ac012c84920420923b1d1a15d7a0 /apps/examples | |
parent | 8e99f6bfed3e066cec389ea80efd83ea86f7d067 (diff) | |
download | px4-nuttx-8afce11c793cef769c327f81616f417b9d758569.tar.gz px4-nuttx-8afce11c793cef769c327f81616f417b9d758569.tar.bz2 px4-nuttx-8afce11c793cef769c327f81616f417b9d758569.zip |
Fix netutils configuration issues: CONFIG_NETUTILS_HTTPD_SENDFILE was missing from Kconfig; CONFIG_NET_HAVE_SOLINGER should be CONFIG_NET_SOLINGER; Type of CONFIG_NET_HTTPD_MAXPATH was wrong in Kconfig file. From Max
Diffstat (limited to 'apps/examples')
-rw-r--r-- | apps/examples/cc3000/telnetd_daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/cc3000/telnetd_daemon.c b/apps/examples/cc3000/telnetd_daemon.c index 68bcbfbca..2adadc60a 100644 --- a/apps/examples/cc3000/telnetd_daemon.c +++ b/apps/examples/cc3000/telnetd_daemon.c @@ -99,7 +99,7 @@ static int telnetd_daemon(int argc, char *argv[]) { FAR struct telnetd_s *daemon; struct sockaddr_in myaddr; -#ifdef CONFIG_NET_HAVE_SOLINGER +#ifdef CONFIG_NET_SOLINGER struct linger ling; #endif socklen_t addrlen; @@ -187,7 +187,7 @@ static int telnetd_daemon(int argc, char *argv[]) /* Configure to "linger" until all data is sent when the socket is closed */ -#ifdef CONFIG_NET_HAVE_SOLINGER +#ifdef CONFIG_NET_SOLINGER ling.l_onoff = 1; ling.l_linger = 30; /* timeout is seconds */ if (setsockopt(acceptsd, SOL_SOCKET, SO_LINGER, &ling, sizeof(struct linger)) < 0) |