[Toybox] [PATCH] getty/telnet/tftpd: minor cleanup.

enh enh at google.com
Tue Jan 26 10:05:13 PST 2021


Remove STDIN_FILENO and use FLAG().

Use xsetspeed() rather than have a duplicate table.

Inline getty's print_prompt().

There's still a lot of cleanup needed here, in particular use of toybuf
and removal of the inappropriately-named HOSTNAME_SIZE (and ideally
sharing that logic with login(1) which already contains a better
implementation of it).
---
 toys/pending/getty.c  | 160 +++++++++++++-----------------------------
 toys/pending/telnet.c |   8 +--
 toys/pending/tftpd.c  |  10 +--
 3 files changed, 58 insertions(+), 120 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210126/2b716082/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-getty-telnet-tftpd-minor-cleanup.patch
Type: text/x-patch
Size: 11954 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210126/2b716082/attachment-0002.bin>


More information about the Toybox mailing list