summaryrefslogtreecommitdiff
path: root/alpine/alpine.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2024-01-30 21:12:06 -0700
committerEduardo Chappa <chappa@washington.edu>2024-01-30 21:12:06 -0700
commiteaa7b17bca60632bc703f97c169ee4af2a519a2a (patch)
tree1c39d658ccf304f7d64fa3ef8ce104a44dcd3c03 /alpine/alpine.c
parentf7deb74aa5612d4d49da4ec179e61124e8fa0763 (diff)
downloadalpine-eaa7b17bca60632bc703f97c169ee4af2a519a2a.tar.xz
* Changes in the source code of Alpine to define internal prototypes
of all functions so that they follow modern C standards. This lead to the splitting of the gf_io_t type into two types gf_i_t and gf_o_t with different internal prototypes. More details in the file pith/detach.c. This work was initiated based on a report by Holger Hoffstätte.
Diffstat (limited to 'alpine/alpine.c')
-rw-r--r--alpine/alpine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/alpine/alpine.c b/alpine/alpine.c
index 6daed0ff..1b96d7b3 100644
--- a/alpine/alpine.c
+++ b/alpine/alpine.c
@@ -80,7 +80,7 @@ static unsigned long gets_bytes;
*/
void convert_args_to_utf8(struct pine *, ARGDATA_S *);
void preopen_stayopen_folders(void);
-int read_stdin_char(char *);
+int read_stdin_char(unsigned char *);
void main_redrawer(void);
void show_main_screen(struct pine *, int, OtherMenu, struct key_menu *, int, Pos *);
void do_menu(int, Pos *, struct key_menu *);
@@ -147,7 +147,7 @@ main(int argc, char **argv)
int rv;
long rvl;
struct pine *pine_state;
- gf_io_t stdin_getc = NULL;
+ gf_i_t stdin_getc = NULL;
char *args_for_debug = NULL, *init_pinerc_debugging = NULL;
/*----------------------------------------------------------------------
@@ -947,7 +947,7 @@ main(int argc, char **argv)
redir++;
src = CharStar;
if(isatty(0) && (store = so_get(src, NULL, EDIT_ACCESS))){
- gf_io_t pc;
+ gf_o_t pc;
gf_set_so_writec(&pc, store);
gf_filter_init();
@@ -1550,7 +1550,7 @@ preopen_stayopen_folders(void)
* redirected stdin
*/
int
-read_stdin_char(char *c)
+read_stdin_char(unsigned char *c)
{
int rv;