diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-04 01:42:54 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-04 01:42:54 +0000 |
commit | 7672cb6e48e2ed472cbd72caaa0eb155608a644d (patch) | |
tree | ee770081db4ef1d4b6022e0608a222ea35319caa /contrib/less/ttyin.c | |
parent | 5297f4bc59da861bbe3beb5ee12839fa05e79882 (diff) | |
download | FreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.zip FreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.tar.gz |
/home/delphij/m
Diffstat (limited to 'contrib/less/ttyin.c')
-rw-r--r-- | contrib/less/ttyin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/less/ttyin.c b/contrib/less/ttyin.c index ca500f9..0cb427b 100644 --- a/contrib/less/ttyin.c +++ b/contrib/less/ttyin.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2004 Mark Nudelman + * Copyright (C) 1984-2007 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -102,8 +102,6 @@ getchr() { char c; int result; - int hex_in = 0; - int hex_value = 0; do { @@ -137,6 +135,9 @@ getchr() #endif #if 0 /* allow entering arbitrary hex chars for testing */ /* ctrl-A followed by two hex chars makes a byte */ + { + int hex_in = 0; + int hex_value = 0; if (c == CONTROL('A')) { hex_in = 2; @@ -162,6 +163,7 @@ getchr() } c = hex_value; } + } #endif /* * Various parts of the program cannot handle |