summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-22 10:19:35 +0000
committerJim Meyering <jim@meyering.net>1999-08-22 10:19:35 +0000
commit8313e867b28351ea8c12f43fc8df547c38ebdc5d (patch)
treee81da2d3e61deb61f94bd574f03e15468cc77021 /src
parent4dac9be01416852472b338a995d3d3497816f14a (diff)
downloadcoreutils-8313e867b28351ea8c12f43fc8df547c38ebdc5d.tar.xz
(validate_path): Use IF_LINT macro instead of #ifdef lint.
Diffstat (limited to 'src')
-rw-r--r--src/pathchk.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index cb070a4f7..d13d558f6 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -263,7 +263,7 @@ validate_path (char *path, int portability)
{
int path_max;
int last_elem; /* Nonzero if checking last element of path. */
- int exists; /* 2 if the path element exists. */
+ int exists IF_LINT (= 0); /* 2 if the path element exists. */
char *slash;
char *parent; /* Last existing leading directory so far. */
@@ -273,11 +273,6 @@ validate_path (char *path, int portability)
if (*path == '\0')
return 0;
-#ifdef lint
- /* Suppress `used before initialized' warning. */
- exists = 0;
-#endif
-
/* Figure out the parent of the first element in PATH. */
parent = xstrdup (*path == '/' ? "/" : ".");