diff --git a/src/aline.c b/src/aline.c index d943811..59058e1 100644 --- a/src/aline.c +++ b/src/aline.c @@ -67,7 +67,7 @@ sig_winch(int signum) } #pragma GCC diagnostic pop -void +static void alineFini(void) { alineSetMode(ALINE_CANONICAL); diff --git a/src/aline.h b/src/aline.h index 5ed87f8..1544cca 100644 --- a/src/aline.h +++ b/src/aline.h @@ -53,7 +53,6 @@ extern struct winsize window; #define ALINE_HISTORY 16 -extern void alineFini(void); extern int alineInit(int hist_size); extern int alineReadByte(void); extern int alineSetMode(int mode); diff --git a/src/main.c b/src/main.c index 62d3e62..fe34b08 100644 --- a/src/main.c +++ b/src/main.c @@ -61,7 +61,6 @@ cleanup(void) p4Free(ctx_main); /* This is redundant too, but I like it for symmetry. */ sig_fini(); - p4Fini(); } int diff --git a/src/post4.h b/src/post4.h index d90be70..0d48a19 100755 --- a/src/post4.h +++ b/src/post4.h @@ -585,8 +585,6 @@ typedef struct { */ extern void p4Init(P4_Options *opts); -#define p4Fini() alineFini() - /** * Create a new interpreter context. *