aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/format.c b/format.c
index 84f2f9e9..0fbeb5f7 100644
--- a/format.c
+++ b/format.c
@@ -20,11 +20,9 @@
#include <sys/param.h>
#include <sys/wait.h>
-#include <ctype.h>
#include <errno.h>
#include <fnmatch.h>
#include <libgen.h>
-#include <netdb.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -857,7 +855,7 @@ format_choose(char *s, char **left, char **right)
}
/* Is this true? */
-static int
+int
format_true(const char *s)
{
if (s != NULL && *s != '\0' && (s[0] != '0' || s[1] != '\0'))