summaryrefslogtreecommitdiff
path: root/lib/xfts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xfts.c')
-rw-r--r--lib/xfts.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/xfts.c b/lib/xfts.c
index e91ab079e..5994a5fef 100644
--- a/lib/xfts.c
+++ b/lib/xfts.c
@@ -35,28 +35,28 @@
FTS *
xfts_open (char * const *argv, int options,
- int (*compar) (const FTSENT **, const FTSENT **))
+ int (*compar) (const FTSENT **, const FTSENT **))
{
FTS *fts = fts_open (argv, options | FTS_CWDFD, compar);
if (fts == NULL)
{
/* This can fail in three ways: out of memory, invalid bit_flags,
- and one or more of the FILES is an empty string. We could try
- to decipher that errno==EINVAL means invalid bit_flags and
- errno==ENOENT means there's an empty string, but that seems wrong.
- Ideally, fts_open would return a proper error indicator. For now,
- we'll presume that the bit_flags are valid and just check for
- empty strings. */
+ and one or more of the FILES is an empty string. We could try
+ to decipher that errno==EINVAL means invalid bit_flags and
+ errno==ENOENT means there's an empty string, but that seems wrong.
+ Ideally, fts_open would return a proper error indicator. For now,
+ we'll presume that the bit_flags are valid and just check for
+ empty strings. */
bool invalid_arg = false;
for (; *argv; ++argv)
- {
- if (**argv == '\0')
- invalid_arg = true;
- }
+ {
+ if (**argv == '\0')
+ invalid_arg = true;
+ }
if (invalid_arg)
- error (EXIT_FAILURE, 0, _("invalid argument: %s"), quote (""));
+ error (EXIT_FAILURE, 0, _("invalid argument: %s"), quote (""));
else
- xalloc_die ();
+ xalloc_die ();
}
return fts;