aboutsummaryrefslogtreecommitdiff
path: root/miscutils/less.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/less.c')
-rw-r--r--miscutils/less.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index da595f428..8d4f7ecd4 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -153,14 +153,14 @@ struct globals {
153#define term_orig (G.term_orig ) 153#define term_orig (G.term_orig )
154#define term_less (G.term_less ) 154#define term_less (G.term_less )
155#define INIT_G() do { \ 155#define INIT_G() do { \
156 PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ 156 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
157 less_gets_pos = -1; \ 157 less_gets_pos = -1; \
158 empty_line_marker = "~"; \ 158 empty_line_marker = "~"; \
159 num_files = 1; \ 159 num_files = 1; \
160 current_file = 1; \ 160 current_file = 1; \
161 eof_error = 1; \ 161 eof_error = 1; \
162 terminated = 1; \ 162 terminated = 1; \
163 } while (0) 163} while (0)
164 164
165/* Reset terminal input to normal */ 165/* Reset terminal input to normal */
166static void set_tty_cooked(void) 166static void set_tty_cooked(void)