[rtems-libbsd commit] telnetd: Update due to API changes
Sebastian Huber
sebh at rtems.org
Tue Oct 2 05:13:12 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 38c1a410fc04f0e5400bc990d96c5a41ff95e278
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=38c1a410fc04f0e5400bc990d96c5a41ff95e278
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Oct 2 07:10:02 2018 +0200
telnetd: Update due to API changes
Update #3526.
---
rtemsbsd/telnetd/telnetd-service.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/rtemsbsd/telnetd/telnetd-service.c b/rtemsbsd/telnetd/telnetd-service.c
index be6e812..ba90501 100644
--- a/rtemsbsd/telnetd/telnetd-service.c
+++ b/rtemsbsd/telnetd/telnetd-service.c
@@ -56,11 +56,6 @@ __weak_reference(_rtems_telnetd_stack_size, rtems_telnetd_stack_size);
int _rtems_telnetd_stack_size;
/*
- * Condefs always defines this variable.
- */
-extern int rtems_telnetd_maximum_ptys;
-
-/*
* By default no login.
*/
static bool telnet_login;
@@ -135,7 +130,7 @@ telnetd_service(rtems_bsd_rc_conf* rc_conf)
fprintf(stderr, "error: telnet: invalid connections countt\n");
}
else {
- rtems_telnetd_maximum_ptys = conns;
+ config.client_maximum = conns;
}
break;
case 'P':
@@ -160,7 +155,7 @@ telnetd_service(rtems_bsd_rc_conf* rc_conf)
}
if (verbose) {
printf("telnetd: conns:%lu pri:%lu login:%s\n",
- rtems_telnetd_maximum_ptys, config.priority,
+ config.client_maximum, config.priority,
telnet_login == NULL ? "no" : "yes");
}
sc = rtems_telnetd_start(&config);
More information about the vc
mailing list