aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-08 23:42:54 +0000
committerDavid Robillard <d@drobilla.net>2012-08-08 23:42:54 +0000
commitc283edd147ac0785dadf57e2d7a681905b9b229f (patch)
tree1f49739df1f2c1eacc52801fdde999a5115e24b0 /src/uri.c
parent1461865085504ba8cb41d1fb9c8738266c6537f7 (diff)
downloadserd-c283edd147ac0785dadf57e2d7a681905b9b229f.tar.gz
serd-c283edd147ac0785dadf57e2d7a681905b9b229f.tar.bz2
serd-c283edd147ac0785dadf57e2d7a681905b9b229f.zip
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uri.c b/src/uri.c
index f7d17e59..1812bb93 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -446,15 +446,15 @@ write_rel_path(SerdSink sink,
// Find the number of up references ("..") required
size_t up = 0;
- for (size_t i = last_shared_sep + 1; i < base_len; ++i) {
- if (uri_path_at(base, i) == '/') {
+ for (size_t s = last_shared_sep + 1; s < base_len; ++s) {
+ if (uri_path_at(base, s) == '/') {
++up;
}
}
// Write up references
size_t len = 0;
- for (size_t i = 0; i < up; ++i) {
+ for (size_t u = 0; u < up; ++u) {
len += sink("../", 3, stream);
}