summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/file.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-01-16 18:08:15 +0000
committermillert <millert@openbsd.org>2015-01-16 18:08:15 +0000
commit77b37936f7fa7e1632210bb1a661051473e7b303 (patch)
tree6f71e0f46777e070145113c6b85affbec409996f /usr.bin/file/file.c
parentproperly handle opening parentheses, correctly quote vertical bars, (diff)
downloadwireguard-openbsd-77b37936f7fa7e1632210bb1a661051473e7b303.tar.xz
wireguard-openbsd-77b37936f7fa7e1632210bb1a661051473e7b303.zip
Add missing <limits.h> to file.c and remove definition of PATH_MAX
which masked the missing include. OK deraadt@
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r--usr.bin/file/file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c
index 310bce7b15d..fcd6c34cd5f 100644
--- a/usr.bin/file/file.c
+++ b/usr.bin/file/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.25 2015/01/16 08:24:04 doug Exp $ */
+/* $OpenBSD: file.c,v 1.26 2015/01/16 18:08:15 millert Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
* Software written by Ian F. Darwin and others;
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <limits.h>
#include <string.h>
#ifdef RESTORE_TIME
# if (__COHERENT__ >= 0x420)
@@ -80,10 +81,6 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc
# define USAGE "Usage: %s [-bcik" SYMLINKFLAG "nNprsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...\n" \
" %s -C -m magicfiles\n"
-#ifndef PATH_MAX
-#define PATH_MAX 1024
-#endif
-
private int /* Global command-line options */
bflag = 0, /* brief output format */
nopad = 0, /* Don't pad output */