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:09 +0100
commit671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /footobar.c
parenta076248389c82276e079756bee26c011b03f70f2 (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));