netutils/telnetd: Remove unused parameter from telnetd_driver
This commit is contained in:
parent
449af751a8
commit
9faf23290c
@ -1435,7 +1435,7 @@
|
||||
* apps/examples/uavcan: libuavcan example from Paul Alexander
|
||||
Patience (2015-10-01).
|
||||
|
||||
7.13 2015-xx-xx Gregory Nutt <gnutt@nuttx.org>
|
||||
7.13 2015-12-05 Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
* apps/examples/fstest: Add a generic file system test. This is
|
||||
essentially the same as examples/smart, but has all of the SmartFS
|
||||
@ -1467,7 +1467,7 @@
|
||||
* apps/nshlib: If CONFIG_NETDEV_STATISTICS=y, then print the network
|
||||
driver statistics in the ifconfig (15-11-26).
|
||||
* apps/nshlib: The 'ifconfig' command now uses /proc/net/<dev> to view
|
||||
and network device configuration/status and /proc/net/stat to show
|
||||
network device configuration and status and /proc/net/stat to show
|
||||
network statistics. A consequence of this is that you cannot view
|
||||
this network information if the procfs is not enabled and mounted at
|
||||
/proc (2015-11-27).
|
||||
@ -1485,3 +1485,5 @@
|
||||
task status information. A consequence of this is that you cannot use
|
||||
the 'ps' command if the procfs is not enabled and mounted at
|
||||
/proc (2015-11-28).
|
||||
|
||||
7.14 2015-xx-xx Gregory Nutt <gnutt@nuttx.org>
|
||||
|
@ -99,8 +99,6 @@ extern struct telnetd_common_s g_telnetdcommon;
|
||||
*
|
||||
* Parameters:
|
||||
* sd - The socket descriptor that represents the new telnet connection.
|
||||
* daemon - A pointer to the structure representing the overall state of
|
||||
* this instance of the telnet daemon.
|
||||
*
|
||||
* Return:
|
||||
* An allocated string represent the full path to the created driver. The
|
||||
@ -109,7 +107,7 @@ extern struct telnetd_common_s g_telnetdcommon;
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR char *telnetd_driver(int sd, FAR struct telnetd_s *daemon);
|
||||
FAR char *telnetd_driver(int sd);
|
||||
|
||||
#endif /* __APPS_NETUTILS_TELNETD_TELNETD_H */
|
||||
|
||||
|
@ -252,7 +252,7 @@ static int telnetd_daemon(int argc, char *argv[])
|
||||
/* Create a character device to "wrap" the accepted socket descriptor */
|
||||
|
||||
nllvdbg("Creating the telnet driver\n");
|
||||
devpath = telnetd_driver(acceptsd, daemon);
|
||||
devpath = telnetd_driver(acceptsd);
|
||||
if (devpath < 0)
|
||||
{
|
||||
nlldbg("ERROR: telnetd_driver failed\n");
|
||||
|
@ -738,8 +738,6 @@ static int telnetd_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
*
|
||||
* Parameters:
|
||||
* sd - The socket descriptor that represents the new telnet connection.
|
||||
* daemon - A pointer to the structure representing the overall state of
|
||||
* this instance of the telnet daemon.
|
||||
*
|
||||
* Return:
|
||||
* An allocated string represent the full path to the created driver. The
|
||||
@ -748,7 +746,7 @@ static int telnetd_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR char *telnetd_driver(int sd, FAR struct telnetd_s *daemon)
|
||||
FAR char *telnetd_driver(int sd)
|
||||
{
|
||||
FAR struct telnetd_dev_s *priv;
|
||||
FAR struct socket *psock;
|
||||
@ -775,7 +773,7 @@ FAR char *telnetd_driver(int sd, FAR struct telnetd_s *daemon)
|
||||
|
||||
/* Clone the internal socket structure. We do this so that it will be
|
||||
* independent of threads and of socket descriptors (the original socket
|
||||
* instance resided in the daemon's socket array).
|
||||
* instance resided in the daemon's task group`).
|
||||
*/
|
||||
|
||||
psock = sockfd_socket(sd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user