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 7af7840d..7aad4cb8 100644
--- a/format.c
+++ b/format.c
@@ -19,11 +19,9 @@
#include <sys/types.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>
@@ -840,7 +838,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'))