summaryrefslogtreecommitdiff
path: root/lib/fts.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-01-11 16:29:35 +0000
committerJim Meyering <jim@meyering.net>2006-01-11 16:29:35 +0000
commit08e4a9a00eb2ecb04e03123757b8aec2eb8796bb (patch)
tree3bb828a03a6fd649a81928f126326e8f8e59e87c /lib/fts.c
parentf84dc6ccfc19236a2daad239b5bb5d117e67f724 (diff)
downloadcoreutils-08e4a9a00eb2ecb04e03123757b8aec2eb8796bb.tar.xz
(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their
own block, so pre-c99 compilers don't object.
Diffstat (limited to 'lib/fts.c')
-rw-r--r--lib/fts.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/fts.c b/lib/fts.c
index 94d8de9d4..6cf393c00 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -242,9 +242,11 @@ fts_open (char * const *argv,
#ifndef MAXPATHLEN
# define MAXPATHLEN 1024
#endif
- size_t maxarglen = fts_maxarglen(argv);
- if (! fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
- goto mem1;
+ {
+ size_t maxarglen = fts_maxarglen(argv);
+ if (! fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
+ goto mem1;
+ }
/* Allocate/initialize root's parent. */
if ((parent = fts_alloc(sp, "", 0)) == NULL)