diff options
author | Jim Meyering <jim@meyering.net> | 2006-01-11 16:29:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-01-11 16:29:35 +0000 |
commit | 08e4a9a00eb2ecb04e03123757b8aec2eb8796bb (patch) | |
tree | 3bb828a03a6fd649a81928f126326e8f8e59e87c /lib | |
parent | f84dc6ccfc19236a2daad239b5bb5d117e67f724 (diff) | |
download | coreutils-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')
-rw-r--r-- | lib/fts.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |