aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-07 09:46:37 +0000
committerOmar Polo <op@omarpolo.com>2021-07-07 09:46:37 +0000
commita8a1f439210de9538b196c6bb5470c306379128c (patch)
tree53c25939117755a85860dab8670cc7faaad56635 /iri.c
parent68ef1170922d8c457b529dd7f64dc207a3c8b5a3 (diff)
style(9)-ify
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/iri.c b/iri.c
index 64fcca2..8842eab 100644
--- a/iri.c
+++ b/iri.c
@@ -114,13 +114,15 @@ parse_scheme(struct parser *p)
}
do {
- /* normalize the scheme (i.e. lowercase it)
+ /*
+ * normalize the scheme (i.e. lowercase it)
*
* XXX: since we cannot have good things, tolower
* behaviour depends on the LC_CTYPE locale. The good
* news is that we're sure p->iri points to something
* that's in the ASCII range, so tolower can't
- * mis-behave on some systems due to the locale. */
+ * mis-behave on some systems due to the locale.
+ */
*p->iri = tolower(*p->iri);
p->iri++;
} while (isalnum(*p->iri)
@@ -214,9 +216,11 @@ parse_authority(struct parser *p)
return 0;
}
-/* Routine for path_clean. Elide the pointed .. with the preceding
+/*
+ * Routine for path_clean. Elide the pointed .. with the preceding
* element. Return 0 if it's not possible. incr is the length of
- * the increment, 3 for ../ and 2 for .. */
+ * the increment, 3 for ../ and 2 for ..
+ */
static int
path_elide_dotdot(char *path, char *i, int incr)
{