/*
* Sherlock Library -- URL Functions (according to RFC 1738 and 1808)
*
- * (c) 1997--1999 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ * (c) 1997--1999 Martin Mares <mj@ucw.cz>
*/
+#include "lib/lib.h"
+#include "lib/url.h"
+#include "lib/chartype.h"
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#include "lib.h"
-#include "url.h"
-#include "string.h"
-
/* Escaping and de-escaping */
static uns
int
url_normalize(struct url *u, struct url *b)
{
- byte *k;
int err;
/* Basic checks */
/* Pack a broken-down URL */
-byte *
+static byte *
append(byte *d, byte *s, byte *e)
{
if (d)