summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-05-27 02:37:18 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-05-27 02:37:18 +0000
commit154a2e0880425d383a4c2dedd17b9ddcb1ce0ccf (patch)
tree51884409b09991d886f951e88192d888fa45d3b7 /src
parent1cd4d6d4408aa759b1b76eb7e3536d958d4f02e8 (diff)
downloadtinyproxy-154a2e0880425d383a4c2dedd17b9ddcb1ce0ccf.tar.gz
tinyproxy-154a2e0880425d383a4c2dedd17b9ddcb1ce0ccf.zip
Changed the references to log() to log_message(). Also changed some of the
data types for the variables.
Diffstat (limited to 'src')
-rw-r--r--src/uri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uri.c b/src/uri.c
index 2a7925a..af1ec7d 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -1,4 +1,4 @@
-/* $Id: uri.c,v 1.3 2000-09-11 23:57:43 rjkaes Exp $
+/* $Id: uri.c,v 1.4 2001-05-27 02:37:18 rjkaes Exp $
*
* This borrows the REGEX from RFC2396 to split a URI string into the five
* primary components. The components are:
@@ -43,7 +43,7 @@
static int extract_uri(regmatch_t pmatch[], const char *buffer, char **section,
int substring)
{
- int len = pmatch[substring].rm_eo - pmatch[substring].rm_so;
+ size_t len = pmatch[substring].rm_eo - pmatch[substring].rm_so;
if ((*section = malloc(len + 1)) == NULL)
return -1;
@@ -74,12 +74,12 @@ URI *explode_uri(const char *string)
memset(uri, 0, sizeof(URI));
if (regcomp(&preg, URIPATTERN, REG_EXTENDED) != 0) {
- log(LOG_ERR, "explode_uri: regcomp");
+ log_message(LOG_ERR, "explode_uri: regcomp");
goto ERROR_EXIT;
}
if (regexec(&preg, string, NMATCH, pmatch, 0) != 0) {
- log(LOG_ERR, "explode_uri: regexec");
+ log_message(LOG_ERR, "explode_uri: regexec");
goto ERROR_EXIT;
}