Cosmetics.

This commit is contained in:
Emil Mikulic 2003-11-24 12:09:08 +00:00
parent 850543f7d6
commit 7014380256

View File

@ -400,7 +400,8 @@ static char *split_string(const char *src,
/* --------------------------------------------------------------------------- /* ---------------------------------------------------------------------------
* Consolidate slashes in-place. * Consolidate slashes in-place by shifting parts of the string over repeated
* slashes.
*/ */
static void consolidate_slashes(char *s) static void consolidate_slashes(char *s)
{ {
@ -523,7 +524,7 @@ static void test_make_safe_uri(void)
debugf("FAIL: `%s' unsafe, expecting `%s'\n", from, to); \ debugf("FAIL: `%s' unsafe, expecting `%s'\n", from, to); \
else if (strcmp(tmp, to) != 0) \ else if (strcmp(tmp, to) != 0) \
debugf("FAIL: `%s' -> `%s', expecting `%s'\n", from, tmp, to); \ debugf("FAIL: `%s' -> `%s', expecting `%s'\n", from, tmp, to); \
safefree(tmp); free(uri); } while(0) safefree(tmp); safefree(uri); } while(0)
SAFE("/", "/"); SAFE("/", "/");
SAFE("//", "/"); SAFE("//", "/");