telnetd: Update due to API changes

Update #3526.
This commit is contained in:
Sebastian Huber
2018-10-02 07:10:02 +02:00
parent 446f887000
commit 38c1a410fc

View File

@@ -55,11 +55,6 @@ extern int rtems_telnetd_stack_size;
__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.
*/
@@ -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);