summaryrefslogtreecommitdiff
path: root/footobar.c
diff options
context:
space:
mode:
authorToby Goodwin <tgoodwin@cygnus.co.uk>1997-07-07 00:00:01 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commitb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /footobar.c
parent5556dde4d3ad4e34267320b1411fc090b18a24b0 (diff)
beta: rc-1.5b2
Diffstat (limited to 'footobar.c')
-rw-r--r--footobar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/footobar.c b/footobar.c
index 2440f5a..27955ba 100644
--- a/footobar.c
+++ b/footobar.c
@@ -7,7 +7,7 @@
/* protect an exported name from brain-dead shells */
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
static bool Fconv(Format *f, int ignore) {
unsigned const char *s = va_arg(f->args, unsigned const char *);
int c;
@@ -192,7 +192,7 @@ extern char *get_name(char *s) {
case '=':
*r++ = '\0';
return result;
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
case '_':
if (*s == '_') {
static const char hexchar[] = "0123456789abcdef";
@@ -329,7 +329,7 @@ void initprint(void) {
fmtinstall('S', Sconv);
fmtinstall('T', Tconv);
fmtinstall('D', Dconv);
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
fmtinstall('F', Fconv);
#else
fmtinstall('F', fmtinstall('s', NULL));