summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-07-08 16:53:21 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:06 +0100
commit3cf6580197ccd9300af633502e746a1b5c22c176 (patch)
tree8523b350418d3e172485db550529802f2a842234
parenta0f0aa5f02a087f2c433f6cc53a6331c5befaaed (diff)
don't include standard headers: that's rc.h's job
don't declare stat()
-rw-r--r--which.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/which.c b/which.c
index 9fe74d5..c4bbc29 100644
--- a/which.c
+++ b/which.c
@@ -10,17 +10,13 @@
#include "rc.h"
#include <errno.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#define X_USR 0100
#define X_GRP 0010
#define X_OTH 0001
#define X_ALL (X_USR|X_GRP|X_OTH)
-extern int stat(const char *, struct stat *);
-
static bool initialized = FALSE;
static uid_t uid;
static gid_t gid;