summaryrefslogtreecommitdiffstats
path: root/sys/dev/snp
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-04-10 03:51:49 +0000
committerdd <dd@FreeBSD.org>2002-04-10 03:51:49 +0000
commitb489d476e4aa41964680332b8f09df0b26a49278 (patch)
treea149b0e59e0e0ee200da86439107d607faa61ff9 /sys/dev/snp
parentef68f6f3c9847179f76c02d7a2013b31b1f0272f (diff)
downloadFreeBSD-src-b489d476e4aa41964680332b8f09df0b26a49278.zip
FreeBSD-src-b489d476e4aa41964680332b8f09df0b26a49278.tar.gz
Treat input on the snp device as an `unsigned char'. According to the
submitter, this permits Russian (and probably other locales') characters to be entered via watch(8). PR: 35636 Submitted by: Gleb Smirnoff <glebius@rinet.ru>
Diffstat (limited to 'sys/dev/snp')
-rw-r--r--sys/dev/snp/snp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index f0dcc2c..4891666 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -202,7 +202,7 @@ snpwrite(dev, uio, flag)
struct snoop *snp;
struct tty *tp;
int error, i, len;
- char c[SNP_INPUT_BUF];
+ unsigned char c[SNP_INPUT_BUF];
snp = dev->si_drv1;
tp = snp->snp_tty;
OpenPOWER on IntegriCloud