summaryrefslogtreecommitdiff
path: root/lib/canonicalize.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-14 22:38:19 -0700
committerPádraig Brady <P@draigBrady.com>2012-10-14 22:43:38 -0700
commit573dad2ce496fa87dac2e79f37bae62e0be1d2c6 (patch)
treeffbba2c7287505a6d80c8673d556af804e6fc6b9 /lib/canonicalize.c
parent308c394b3c4ee0bc13826b381b9f0668481c4a0f (diff)
downloadgnulib-573dad2ce496fa87dac2e79f37bae62e0be1d2c6.tar.gz
canonicalize: fix C89 compilation
* lib/canonicalize.c (canonicalize_filename_mode): Swap order of declarations so C89 is supported. Also remove the comment referencing mem allocation as the suggested feature could not be implemented as suggested. Reported by Michael Goffioul
Diffstat (limited to 'lib/canonicalize.c')
-rw-r--r--lib/canonicalize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/canonicalize.c b/lib/canonicalize.c
index 583c1a4af2..20ca40bf85 100644
--- a/lib/canonicalize.c
+++ b/lib/canonicalize.c
@@ -99,9 +99,9 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
Hash_table *ht = NULL;
int saved_errno;
int can_flags = can_mode & ~CAN_MODE_MASK;
- can_mode &= CAN_MODE_MASK;
bool logical = can_flags & CAN_NOLINKS;
- /* Perhaps in future we might support CAN_NOALLOC with CAN_NOLINKS. */
+
+ can_mode &= CAN_MODE_MASK;
if (MULTIPLE_BITS_SET (can_mode))
{