summaryrefslogtreecommitdiff
path: root/distrib/special
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-04-28 18:15:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-04-28 18:15:50 +0000
commit8f313cebe943aa406956824845bebd8690cb10d9 (patch)
tree6b4ccf5ca97d193cc21e4c4b6aff4dc326ae3c3b /distrib/special
parent2059f1017be4abf146b1713ff4dc36d232deb871 (diff)
rename BS so we don't collide with the ocurses define,
makes gcc4 happy. ok deraadt@ 'Looks safe' miod@
Diffstat (limited to 'distrib/special')
-rw-r--r--distrib/special/more/more.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/special/more/more.c b/distrib/special/more/more.c
index eb0bdb39427..fb8bf5cdde7 100644
--- a/distrib/special/more/more.c
+++ b/distrib/special/more/more.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: more.c,v 1.30 2010/01/14 00:47:30 deraadt Exp $ */
+/* $OpenBSD: more.c,v 1.31 2010/04/28 18:15:49 jsg Exp $ */
/*
* Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -1629,14 +1629,14 @@ again:
return (ch);
}
-static char BS = '\b';
+static char BS1 = '\b';
static char BSB[] = "\b \b";
static char CARAT = '^';
#define ERASEONECHAR do { \
if (docrterase) \
write(STDERR_FILENO, BSB, sizeof(BSB) - 1); \
else \
- write(STDERR_FILENO, &BS, 1); \
+ write(STDERR_FILENO, &BS1, 1); \
} while (0)
int