ttynvt: Some cosmetics in the telnet department

This commit is contained in:
Kim Woelders
2023-02-14 07:19:24 +01:00
parent 84c54c5504
commit d0bf492b10
4 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ bin_PROGRAMS = ttynvt
ttynvt_SOURCES = \
ttynvt.c \
telnet_basic.c telnet_rfc2217.c telnet.h telnet_param.h
telnet_basic.c telnet_client_rfc2217.c telnet.h telnet_param.h
ttynvt_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(FUSE_CFLAGS) $(CFLAGS_WARN)
+4 -4
View File
@@ -2,10 +2,10 @@
* Copyright (c) 2018 Lars Thrane A/S
* SPDX-License-Identifier: GPL-2.0
*
* Telnet interface
* Telnet interface - client
*/
#ifndef TELNET_H
#define TELNET_H
#ifndef TELNET_CLIENT_H
#define TELNET_CLIENT_H
typedef int (srv_tx_f) (void *cctx, const void *buf, int len);
typedef int (srv_rx_f) (void *cctx, int timeout);
@@ -68,4 +68,4 @@ extern void telnet_rfc2217_ctl(tn_ctx_t * tcc, unsigned int val);
#define TNS_CTL_RTS_OFF 12
#define TNS_CTL_XONOFF_IN 15
#endif /*TELNET_H */
#endif /* TELNET_CLIENT_H */
+1 -2
View File
@@ -2,9 +2,8 @@
* Copyright (c) 2018 Lars Thrane A/S
* SPDX-License-Identifier: GPL-2.0
*
* Telnet server - Telnet protocol handling
* Telnet protocol handling - client
*/
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -2,11 +2,8 @@
* Copyright (c) 2018 Lars Thrane A/S
* SPDX-License-Identifier: GPL-2.0
*
* Telnet server - RFC-2217 handling
* Telnet RFC-2217 handling - client
*/
#include <stddef.h>
#include "telnet.h"
#include "telnet_param.h"