From ec25e0e4d2faca71b46d72b7e95b8cbd0556f95a Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sat, 9 Jan 2021 10:34:21 -0300 Subject: [PATCH] Fixing LGTM warnings. --- src/include/lib3270/filetransfer.h | 16 ++++++++-------- src/network_modules/openssl/main.c | 1 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/include/lib3270/filetransfer.h b/src/include/lib3270/filetransfer.h index 578a1bb..7c427b4 100644 --- a/src/include/lib3270/filetransfer.h +++ b/src/include/lib3270/filetransfer.h @@ -106,14 +106,14 @@ { struct lib3270_ft_callbacks cbk; ///< @brief Callback table - Always the first one. - int ft_last_cr : 1; ///< @brief CR was last char in local file - int remap_flag : 1; ///< @brief Remap ASCII<->EBCDIC - int cr_flag : 1; ///< @brief Add crlf to each line - int unix_text : 1; ///< @brief Following the convention for UNIX text files. - int message_flag : 1; ///< @brief Open Request for msg received - int ascii_flag : 1; ///< @brief Convert to ascii - int ft_is_cut : 1; ///< @brief File transfer is CUT-style - int dft_eof : 1; + unsigned int ft_last_cr : 1; ///< @brief CR was last char in local file + unsigned int remap_flag : 1; ///< @brief Remap ASCII<->EBCDIC + unsigned int cr_flag : 1; ///< @brief Add crlf to each line + unsigned int unix_text : 1; ///< @brief Following the convention for UNIX text files. + unsigned int message_flag : 1; ///< @brief Open Request for msg received + unsigned int ascii_flag : 1; ///< @brief Convert to ascii + unsigned int ft_is_cut : 1; ///< @brief File transfer is CUT-style + unsigned int dft_eof : 1; H3270 * host; diff --git a/src/network_modules/openssl/main.c b/src/network_modules/openssl/main.c index a37738f..3a24e93 100644 --- a/src/network_modules/openssl/main.c +++ b/src/network_modules/openssl/main.c @@ -34,7 +34,6 @@ #include "private.h" - static void openssl_network_reset(H3270 *hSession) { if(hSession->network.context) { -- libgit2 0.21.2